/* ═══════════════════════════════════════════════
   ATP., JSC — Global Stylesheet
   Công ty CP Tư vấn Xây dựng và Công nghệ ATP
   ═══════════════════════════════════════════════ */

:root {
  --navy:        #0a1628;
  --navy-mid:    #112240;
  --navy-light:  #1a3560;
  --steel:       #2a5298;
  --accent:      #e8a020;
  --accent-lt:   #f5b942;
  --white:       #ffffff;
  --off-white:   #f4f6f9;
  --gray:        #8a9ab5;
  --gray-lt:     #c8d3e8;
  --text:        #1a2540;
  --border:      #dce3ef;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

/* ── NAVBAR ─────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  background: rgba(10,22,40,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,160,32,0.2);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; filter: drop-shadow(0 0 4px rgba(232,160,32,0.25)); }
.nav-logo-text strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: 2px; }
.nav-logo-text small  { font-size: 10px; color: var(--gray); letter-spacing: 1.5px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links > li > a {
  display: block; padding: 8px 12px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.7px;
  color: var(--gray-lt); text-decoration: none; text-transform: uppercase;
  border-radius: 4px; transition: color .2s; white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--accent); }
.has-drop { position: relative; }
.has-drop:hover .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--navy-mid); border: 1px solid rgba(232,160,32,0.2);
  border-radius: 6px; min-width: 260px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: all .2s; overflow: hidden; z-index: 200;
}
.dropdown a {
  display: block; padding: 10px 18px;
  font-size: 13px; color: var(--gray-lt); text-decoration: none;
  letter-spacing: 0.3px; border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all .15s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: rgba(232,160,32,0.1); color: var(--accent); padding-left: 24px; }
.nav-cta {
  padding: 9px 20px !important; background: var(--accent) !important;
  color: var(--navy) !important; font-weight: 700 !important;
  border-radius: 4px !important; margin-left: 6px;
}
.nav-cta:hover { background: var(--accent-lt) !important; }

/* ── LAYOUT ──────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

/* ── TYPOGRAPHY UTILITIES ────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-label::before { content: ''; display: block; width: 24px; height: 2px; background: var(--accent); }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(34px,5vw,54px); letter-spacing: 1px; line-height: 1.05; color: var(--navy); }
.section-title.light { color: var(--white); }
.lead { font-size: 15px; font-weight: 300; line-height: 1.8; color: #5a6a88; }

/* ── BUTTONS ─────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px; background: var(--accent); color: var(--navy);
  font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; border-radius: 4px; transition: all .25s; border: none; cursor: pointer;
  clip-path: polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px));
  font-family: 'Barlow', sans-serif;
}
.btn-primary:hover { background: var(--accent-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,160,32,0.3); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 28px; background: transparent; color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; border-radius: 4px; border: 1.5px solid rgba(255,255,255,0.3); transition: all .25s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; background: transparent; color: var(--navy);
  font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; border-radius: 4px; border: 1.5px solid var(--navy); transition: all .25s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline.light { color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline.light:hover { background: rgba(255,255,255,0.1); }

/* ── PAGE HERO ───────────────────────────────── */
.page-hero { padding: 140px 0 72px; background: var(--navy); position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right,rgba(232,160,32,0.07) 1px,transparent 1px),
              linear-gradient(to bottom,rgba(255,255,255,0.025) 1px,transparent 1px);
  background-size: 80px 80px;
}
.page-hero-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom,transparent,var(--accent),transparent); }
.page-hero-content { position: relative; z-index: 1; }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.page-eyebrow::before { content: ''; display: block; width: 32px; height: 2px; background: var(--accent); }
.page-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(44px,7vw,84px); line-height: 0.95; color: var(--white); letter-spacing: 2px; margin-bottom: 18px; }
.page-title span { color: var(--accent); }
.page-desc { max-width: 620px; font-size: 15px; font-weight: 300; line-height: 1.75; color: rgba(255,255,255,0.6); }

/* ── CARDS ───────────────────────────────────── */
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--border); }
.card-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── CERT TABLE ──────────────────────────────── */
.cert-table { width: 100%; border-collapse: collapse; background: var(--white); }
.cert-table th { background: var(--navy); color: var(--white); padding: 13px 16px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; text-align: left; }
.cert-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cert-table tr:hover td { background: rgba(232,160,32,0.04); }
.hang { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.hang-1 { background: rgba(232,160,32,0.15); color: #b07800; border: 1px solid rgba(232,160,32,0.4); }
.hang-2 { background: rgba(42,82,152,0.1); color: var(--steel); border: 1px solid rgba(42,82,152,0.3); }
.hang-3 { background: rgba(138,154,181,0.1); color: var(--gray); border: 1px solid var(--border); }
.hang-special { background: rgba(42,152,100,0.1); color: #1a7a4a; border: 1px solid rgba(42,152,100,0.3); }

/* ── FOOTER ──────────────────────────────────── */
footer { background: var(--navy); padding: 56px 0 24px; border-top: 1px solid rgba(232,160,32,0.2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.38); margin: 14px 0 10px; }
.footer-col h5 { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.22); }

/* ── FLOAT ZALO ──────────────────────────────── */
.float-zalo {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 54px; height: 54px; background: #0068ff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,104,255,0.45); text-decoration: none;
  animation: zalo-pulse 2.5s infinite;
}
@keyframes zalo-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(0,104,255,0.45); }
  50%      { box-shadow: 0 4px 32px rgba(0,104,255,0.7), 0 0 0 8px rgba(0,104,255,0.1); }
}

/* ── REVEAL ANIMATION ────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .1s; }
.rd2 { transition-delay: .2s; }
.rd3 { transition-delay: .3s; }
.rd4 { transition-delay: .4s; }

/* ── LAS-XD PHEP THU TABLE ───────────────────── */
.phepthu-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.phepthu-table thead th { background: var(--navy); color: var(--white); padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; position: sticky; top: 0; }
.phepthu-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.phepthu-table tr:hover td { background: rgba(232,160,32,0.04); }
.phepthu-table .group-header td { background: var(--navy-mid); color: var(--white); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 10px 14px; }
.phepthu-table .tcvn { font-size: 11px; color: var(--gray); }
.phepthu-wrap { max-height: 600px; overflow-y: auto; border: 1px solid var(--border); border-radius: 6px; }

/* ── FORM ────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 4px;
  font-size: 14px; font-family: 'Barlow', sans-serif; color: var(--text);
  transition: border-color .2s; background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { min-height: 110px; resize: vertical; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 0 20px; }
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links { display: none; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 1024px) {
  .card-grid-2 { grid-template-columns: 1fr 1fr; }
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
}
