/* =========================================================
   Dai Minh Vina — design tokens
   Palette sampled from the company logo (navy + construction orange).
   ========================================================= */
:root {
  --navy-900: #1c1e52;
  --navy: #2f3184;
  --navy-600: #565a9e;
  --orange: #e6732d;
  --orange-deep: #b95419;
  --paper: #f3f4f8;
  --paper-raised: #ffffff;
  --ink: #191a24;
  --steel: #575f72;
  --steel-light: #8890a0;
  --line: #dadde6;
  --line-strong: #b7bccb;

  --font-display: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

  --container: 1180px;
  --radius: 4px;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* =========================================================
   Typography helpers
   ========================================================= */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.eyebrow::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--orange);
  flex: none;
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head-row > div:first-child { max-width: 640px; }
@media (max-width: 560px) { .section-head-row .btn { width: 100%; justify-content: center; } }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin-top: 12px; }
.section-head p { color: var(--steel); font-size: 17px; margin-top: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid var(--line-strong); color: var(--navy-900); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* =========================================================
   Title-block signature
   The company runs on engineering drawings; every drawing sheet
   carries a "khung tên" (title block) in the corner. That device
   is reused across the site as the credential/reference marker.
   ========================================================= */
.title-block {
  border: 1.5px solid var(--line-strong);
  background: var(--paper-raised);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.title-block-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.title-block-row + .title-block-row { border-top: 1px solid var(--line); }
.title-block-cell {
  padding: 10px 14px;
  border-left: 1px solid var(--line);
}
.title-block-cell:first-child { border-left: 0; }
.title-block-cell span {
  display: block;
  color: var(--steel-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 10.5px;
  margin-bottom: 3px;
}
.title-block-cell strong { color: var(--navy-900); font-weight: 600; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-branding img { height: 42px; width: auto; }
.site-branding .brand-text { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--navy-900); line-height: 1.25; }
.site-branding .brand-text small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.08em; color: var(--orange-deep); text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav ul { display: flex; align-items: center; gap: 2px; }
.primary-nav a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--steel);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--navy-900); background: rgba(47,49,132,0.06); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-hotline { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 14px; color: var(--navy-900); white-space: nowrap; }
.header-hotline strong { color: var(--orange-deep); }

.nav-toggle { display: none; }

/* Switches to the hamburger menu well above the CSS "tablet" range so a
   typical 1280–1366px laptop viewport never sees the desktop nav wrap. */
@media (max-width: 1320px) {
  .primary-nav { position: fixed; inset: 62px 0 0 0; background: var(--paper-raised); flex-direction: column; align-items: stretch; padding: 18px 24px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; overflow-y: auto; }
  .primary-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .header-hotline span.hide-mobile { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; padding: 8px;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--navy-900); transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 90px;
  background:
    linear-gradient(180deg, #fafbfd 0%, var(--paper) 100%);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 65% 30%, black 40%, transparent 85%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  margin-top: 18px;
}
.hero-copy h1 em { font-style: normal; color: var(--orange); }
.hero-copy .lede {
  margin-top: 20px;
  font-size: 18px;
  color: var(--steel);
  max-width: 52ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-credentials {
  margin-top: 40px;
  max-width: 480px;
}

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 360px; margin: 0 auto; }
}

/* =========================================================
   Stat strip
   ========================================================= */
.stat-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
}
.stat-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 30px 24px;
  border-left: 1px solid var(--line);
  text-align: center;
}
.stat-item:first-child { border-left: 0; }
.stat-item .num { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--navy); }
.stat-item .num span { color: var(--orange); }
.stat-item .label { margin-top: 6px; font-size: 13.5px; color: var(--steel); }
@media (max-width: 760px) {
  .stat-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: 0; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-top: 1px solid var(--line); }
}

/* =========================================================
   Section spacing
   ========================================================= */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--navy-900); color: rgba(255,255,255,0.86); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--orange); }
.section-dark .eyebrow::before { background: var(--orange); }
.section-dark .section-head p { color: rgba(255,255,255,0.62); }

/* =========================================================
   About / company info
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.about-copy p { color: var(--steel); font-size: 16.5px; margin-top: 16px; }
.about-copy p:first-of-type { margin-top: 20px; }
.about-signoff { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.about-signoff .name { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); }
.about-signoff .role { font-size: 13.5px; color: var(--steel); }

.info-card { border: 1.5px solid var(--line-strong); background: var(--paper-raised); }
.info-card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-light); }
.info-card dl { padding: 4px 20px 18px; }
.info-card .row { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.info-card .row:first-child { border-top: 0; }
.info-card dt { flex: 0 0 118px; font-size: 13px; color: var(--steel); }
.info-card dd { font-weight: 600; color: var(--navy-900); font-size: 14.5px; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Services
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 28px;
  background: var(--paper-raised);
  transition: background 0.15s ease;
}
.service-card:hover { background: #fbf7f2; }
.service-card .icon { width: 40px; height: 40px; color: var(--orange); margin-bottom: 18px; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: var(--steel); font-size: 14.5px; }
@media (max-width: 940px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Featured projects
   ========================================================= */
.project-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.project-card {
  background: var(--paper-raised);
  display: block;
  color: inherit;
}
.project-card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--navy-900);
}
.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.project-card:hover .project-card-media img { transform: scale(1.04); }
.project-card-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(var(--navy-600) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-600) 1px, transparent 1px),
    var(--navy-900);
  background-size: 22px 22px;
  opacity: 0.9;
}
.project-card-body { padding: 20px 22px 24px; }
.project-card-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 8px;
}
.project-card-body h3 { font-size: 17px; line-height: 1.35; transition: color 0.15s ease; }
.project-card:hover .project-card-body h3 { color: var(--orange-deep); }

@media (max-width: 940px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .project-grid { grid-template-columns: 1fr; } }

.project-detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
@media (max-width: 780px) { .project-detail-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Capability (dark band): personnel + software
   ========================================================= */
.capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.personnel-list { border-top: 1px solid rgba(255,255,255,0.14); }
.personnel-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.14); gap: 16px; }
.personnel-row .role { font-size: 15px; color: rgba(255,255,255,0.85); }
.personnel-row .bar-wrap { flex: 1; max-width: 200px; height: 6px; background: rgba(255,255,255,0.12); border-radius: 3px; overflow: hidden; margin: 0 14px; }
.personnel-row .bar { height: 100%; background: var(--orange); border-radius: 3px; }
.personnel-row .count { font-family: var(--font-mono); font-size: 14px; color: var(--orange); min-width: 20px; text-align: right; }

.software-list { border-top: 1px solid rgba(255,255,255,0.14); display: grid; gap: 0; }
.software-row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.14); align-items: baseline; }
.software-row .name { font-family: var(--font-mono); font-size: 13.5px; color: var(--orange); flex: 0 0 172px; }
.software-row .use { font-size: 14.5px; color: rgba(255,255,255,0.72); }

@media (max-width: 860px) { .capability-grid { grid-template-columns: 1fr; gap: 40px; } }

/* =========================================================
   Team
   ========================================================= */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.team-card { background: var(--paper-raised); padding: 26px 22px; }
.team-card .name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--navy-900); }
.team-card .role { font-size: 13.5px; color: var(--orange-deep); margin-top: 4px; font-weight: 600; }
.team-card .meta { margin-top: 12px; font-size: 13px; color: var(--steel); line-height: 1.7; }
@media (max-width: 940px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 64px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.cta-inner p { color: rgba(255,255,255,0.72); margin-top: 8px; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy-900); margin-bottom: 7px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper-raised);
  border-radius: var(--radius);
  font-size: 15px;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--navy); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-notice { padding: 13px 16px; border-radius: var(--radius); font-size: 14.5px; margin-bottom: 20px; }
.form-notice.success { background: #eaf6ee; color: #1f6b3a; border: 1px solid #bfe4cb; }
.form-notice.error { background: #fbeaea; color: #a3311c; border: 1px solid #f1c6bd; }
.honeypot-field { position: absolute; left: -9999px; }

.map-frame { border: 1.5px solid var(--line-strong); overflow: hidden; }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(0.15); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); }
.footer-top { padding: 64px 0 40px; display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr; gap: 40px; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 34ch; color: rgba(255,255,255,0.55); }
.footer-col h4 { color: #fff; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.62); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--orange); }
.footer-title-block { border-color: rgba(255,255,255,0.2); background: transparent; }
.footer-title-block .title-block-cell { border-left-color: rgba(255,255,255,0.16); }
.footer-title-block .title-block-row + .title-block-row { border-top-color: rgba(255,255,255,0.16); }
.footer-title-block .title-block-cell span { color: rgba(255,255,255,0.4); }
.footer-title-block .title-block-cell strong { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.45); }

@media (max-width: 940px) { .footer-top { grid-template-columns: 1fr 1fr; padding: 64px 20px 40px 20px;} .footer-bottom { padding: 22px 20px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* =========================================================
   Blog / archive / single / 404 / page (generic content)
   ========================================================= */
.page-banner { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: var(--paper-raised); }
.page-banner h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 10px; }
.breadcrumb { font-family: var(--font-mono); font-size: 12.5px; color: var(--steel-light); text-transform: uppercase; letter-spacing: 0.06em; }
.breadcrumb a:hover { color: var(--orange-deep); }

.entry-content { font-size: 17px; color: var(--ink); max-width: 760px; }
.entry-content > * + * { margin-top: 18px; }
.entry-content h2 { font-size: 26px; margin-top: 36px; }
.entry-content h3 { font-size: 21px; margin-top: 28px; }
.entry-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.entry-content img { border-radius: var(--radius); margin: 8px 0; }
.entry-content ul, .entry-content ol { padding-left: 22px; list-style: disc; }
.entry-content ol { list-style: decimal; }

.post-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 900px; }
.post-card { background: var(--paper-raised); padding: 28px 30px; display: grid; grid-template-columns: 120px 1fr; gap: 24px; }
.post-card .date { font-family: var(--font-mono); font-size: 12.5px; color: var(--orange-deep); text-transform: uppercase; }
.post-card h2 { font-size: 20px; margin-top: 6px; }
.post-card p { color: var(--steel); font-size: 14.5px; margin-top: 8px; }
@media (max-width: 560px) { .post-card { grid-template-columns: 1fr; } }

.pagination { display: flex; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 13px; border-radius: var(--radius); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination a:hover { border-color: var(--navy); }

.not-found { text-align: center; padding: 110px 0; }
.not-found .code { font-family: var(--font-mono); font-size: 15px; color: var(--orange-deep); letter-spacing: 0.1em; }
.not-found h1 { font-size: clamp(48px, 9vw, 96px); margin-top: 14px; }
.not-found p { color: var(--steel); margin-top: 14px; }
.not-found form { margin-top: 30px; display: flex; justify-content: center; gap: 10px; }
.not-found input[type="search"] { padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); width: 300px; max-width: 70vw; }
.not-found button { padding: 12px 20px; background: var(--navy); color: #fff; border-radius: var(--radius); font-weight: 600; }

/* fallback appearance for wp default comment / widget markup, kept minimal */
.widget { margin-bottom: 32px; }
.widget h2, .widget h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
