/* Trung tâm kho vận Bigway — style chung cho mọi trang */
:root {
  --paper: #eef1f0;   /* nền: màu sàn bê tông */
  --white: #ffffff;
  --ink: #16213e;     /* chữ chính: xanh than */
  --navy: #1f3b8c;    /* xanh logo */
  --red: #d8262d;     /* đỏ logo */
  --steel: #59636f;   /* chữ phụ */
  --line: #cbd1d3;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Be Vietnam Pro", system-ui, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 66ch; }
.lead { font-size: 1.15rem; color: var(--steel); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: auto; }
.brand span { font: 700 1.25rem/1.05 var(--display); }
.brand small { display: block; font: 500 .78rem/1.3 var(--body); color: var(--steel); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); }
.header-call { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 4px;
  font: 600 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b81d23; }
.btn-line { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-white { background: #fff; color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); }
.hero img { width: 100%; height: min(78vh, 720px); min-height: 460px; object-fit: cover; opacity: .9; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22,33,62,.72) 0%, rgba(22,33,62,.25) 60%, rgba(22,33,62,0) 100%),
    linear-gradient(180deg, rgba(22,33,62,0) 35%, rgba(22,33,62,.85) 100%);
}
.hero-text { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(28px, 6vw, 64px); }
.hero-text h1 { max-width: 15ch; margin-bottom: .3em; }
.hero-text p { font-size: 1.1rem; max-width: 52ch; color: #e4e8f2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.page-hero { background: var(--ink); color: #fff; padding: clamp(40px, 7vw, 80px) 0 clamp(32px, 5vw, 56px); }
.page-hero p { color: #d6dcea; font-size: 1.1rem; }
.crumb { font-size: .9rem; color: #aeb8cf; margin-bottom: 14px; }
.crumb a { color: #fff; }

/* ---------- Bảng thông số (spec sheet) ---------- */
.specs { background: var(--white); border-bottom: 1px solid var(--line); }
.specs dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.specs div { padding: 26px 24px 24px; border-left: 1px solid var(--line); }
.specs div:first-child { border-left: 0; padding-left: 0; }
.specs dt { color: var(--steel); font-size: .92rem; }
.specs dd { margin: 4px 0 0; font: 700 2.1rem/1.05 var(--display); color: var(--navy); }
.specs dd small { font-size: 1.1rem; font-weight: 600; color: var(--ink); }

/* ---------- Sections ---------- */
section.block { padding: clamp(56px, 8vw, 104px) 0; }
section.block.white { background: var(--white); }
.section-head { margin-bottom: 36px; }

.offer { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.offer + .offer { margin-top: clamp(48px, 7vw, 88px); }
.offer.flip .offer-img { order: 2; }
.offer-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.offer h3 { font-size: 2.2rem; font-weight: 700; }

.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { position: relative; padding: 8px 0 8px 30px; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 12px; height: 7px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--ink); }
.feature { padding: 28px 28px 8px 0; }
.feature + .feature { padding-left: 28px; border-left: 1px solid var(--line); }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--steel); }

/* Vị trí */
.location { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.map { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: 4px; background: var(--line); }
.address { font: 600 1.6rem/1.2 var(--display); margin-bottom: 12px; }

/* Ảnh dạng lưới */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery button { all: unset; cursor: zoom-in; display: block; position: relative; }
.gallery button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; }
.gallery figcaption { font-size: .88rem; color: var(--steel); padding: 6px 2px 4px; }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: auto; height: 100%; max-height: 520px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10,16,32,.9); }
.lightbox img { max-width: 96vw; max-height: 84vh; margin: auto; border-radius: 3px; }
.lightbox p { color: #fff; text-align: center; margin: 10px auto 0; }
.lightbox .close {
  position: fixed; top: 14px; right: 18px; background: #fff; color: var(--ink);
  border: 0; border-radius: 4px; font: 600 1rem/1 var(--body); padding: 10px 14px; cursor: pointer;
}

/* Bảng thông tin văn phòng */
.floor-table { width: 100%; border-collapse: collapse; background: var(--white); margin-bottom: 28px; }
.floor-table th, .floor-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.floor-table th { font: 600 1.25rem/1.2 var(--display); color: var(--navy); width: 22%; }
.floor-table thead th { font: 500 .9rem/1.3 var(--body); color: var(--steel); background: var(--paper); }

/* ---------- Liên hệ ---------- */
.contact { background: var(--navy); color: #fff; }
.contact .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.contact h2 { margin-bottom: .25em; }
.contact p { color: #d8def0; }
.contact-lines { list-style: none; margin: 0; padding: 0; }
.contact-lines li { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-lines span { color: #b9c3de; }
.contact-lines a { color: #fff; font-weight: 600; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.contact .hero-actions { margin-top: 24px; }

.site-footer { background: var(--ink); color: #aeb8cf; font-size: .9rem; padding: 26px 0 90px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: #fff; }

/* Thanh gọi nhanh trên điện thoại */
.callbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .header-call { margin-left: auto; }
  .specs dl { grid-template-columns: repeat(2, 1fr); }
  .specs div { padding-left: 16px; }
  .specs div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .specs div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .offer, .location, .contact .wrap { grid-template-columns: 1fr; }
  .offer.flip .offer-img { order: 0; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 22px 0 6px; border-left: 0; border-top: 1px solid var(--line); }
  .feature:first-child { border-top: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line);
  }
  .callbar .btn { justify-content: center; }
  .floor-table thead { display: none; }
  .floor-table tr, .floor-table th, .floor-table td { display: block; width: auto; }
  .floor-table th { padding-bottom: 0; border-bottom: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(22,33,62,.15) 0%, rgba(22,33,62,.9) 70%); }
}
@media (max-width: 560px) {
  .brand small { display: none; }
  .header-call .label { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: auto; }
  .hero img { min-height: 520px; }
  .specs dd { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
