/* Trường Phúc - giao diện trang công ty */
:root {
  --navy: #0b3a6e;
  --navy-deep: #072748;
  --accent: #f2a900;      /* vàng an toàn điện */
  --accent-ink: #1a1300;
  --ink: #16202b;
  --muted: #4a5868;
  --line: #d9e1ea;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 58, 110, .06), 0 8px 24px rgba(11, 58, 110, .08);
  --wrap: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy-deep); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* Truy cập: viền focus rõ, link bỏ qua, chữ cho trình đọc màn hình */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy-deep); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-deep); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: .02em; }
.brand-text small { font-size: .78rem; color: var(--muted); }

.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink);
}
.nav a:hover { background: var(--bg-alt); color: var(--navy); }
.nav a.nav-cta { background: var(--navy); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--navy-deep); color: #fff; }

.menu-btn {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 22px; height: 2px; background: var(--navy-deep); border-radius: 2px; position: relative; content: "";
}
.menu-icon::before { position: absolute; top: -7px; }
.menu-icon::after { position: absolute; top: 7px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 1rem;
  border: 2px solid transparent; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffb81c; color: var(--accent-ink); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--navy-deep); }
.btn-light:hover { color: var(--navy-deep); background: #eaf1f9; }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(242,169,0,.12), transparent 60%),
    linear-gradient(180deg, #f6f9fc 0%, #fff 100%);
  padding: 56px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700;
  color: #8a5f00; margin-bottom: .75em;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-media { margin: 0; position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow);
}
.hero-media figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: rgba(7, 39, 72, .88); color: #fff; font-size: .88rem; padding: 8px 12px; border-radius: 10px;
}

/* Stats */
.stats { background: var(--navy-deep); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 28px; padding-bottom: 28px; gap: 20px; }
.stats-grid li { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--accent); padding-left: 14px; }
.stats-grid strong { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.1; }
.stats-grid span { color: #c9d6e6; font-size: .92rem; line-height: 1.4; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.prose p { color: #2b3846; }
.checks { margin-top: 18px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 1px 2px rgba(11,58,110,.04);
}
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.ico {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px; margin-bottom: 14px;
  background: #fff4d6; fill: none; stroke: #8a5f00; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
}

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.project { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-body { padding: 20px 22px 24px; }
.project-body p:last-child { margin: 0; color: var(--muted); font-size: .97rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--navy); background: #e6eef8; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

.sub { margin-top: 56px; font-size: 1.3rem; }
.worklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; border-top: 1px solid var(--line); }
.worklist li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.year { flex: 0 0 auto; font-weight: 800; color: var(--navy); min-width: 3.2em; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.clients li {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 12px;
  text-align: center; font-weight: 700; color: #33475b;
  display: flex; flex-direction: column; justify-content: center;
}
.clients small { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* Capability facts */
.lead.dark { color: #2b3846; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts > div { border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 10px; padding: 16px 20px; background: #fff; }
.facts dt { font-weight: 800; color: var(--navy-deep); margin-bottom: 4px; }
.facts dd { margin: 0; color: #2b3846; }

/* Contact */
.contact { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--accent); }
.contact .lead { color: #d6e2f0; }
.contact-list { font-style: normal; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 8px 24px; }
.contact-list p { margin: 0; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); display: grid; gap: 2px; }
.contact-list p:last-child { border-bottom: 0; }
.contact-list .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #a9bfd8; font-weight: 700; }
.contact-list a { color: #fff; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--accent); }

/* Footer */
.site-footer { background: #051c34; color: #b7c6d8; padding: 32px 0; font-size: .92rem; }
.site-footer strong { color: #fff; }
.site-footer p { margin: 4px 0 0; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .cards, .projects { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(11,58,110,.12); display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 2px; }
  .nav a { padding: 14px 12px; font-size: 1.02rem; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 32px 0 44px; }
  .cards, .projects, .worklist { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; }
  .brand-text small { display: none; }
}
@media print {
  .site-header, .menu-btn, .hero-actions, .skip { display: none !important; }
  .section { padding: 24px 0; }
}

/* Ảnh văn phòng ở mục liên hệ */
.office { margin: 24px 0 0; max-width: 420px; }
.office img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.office figcaption { color: #d6e2f0; font-size: .9rem; margin-top: 8px; }
