/* chuyencuabach.com — kieu cho Gioi thieu, Du an, Bao gia, Blog, 404 */

/* menu nhieu muc: thu gon som hon tren man hinh vua */
@media (max-width: 1020px) {
  .menu-toggle { display: inline-block; }
  .menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
  }
  .menu.open { display: flex; }
  .menu li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu li:last-child { padding-top: 12px; }
}
.menu { gap: 22px; }

.head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.head-row .more { font-weight: 600; color: var(--accent); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  font-size: 13px; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.chips.small span { font-size: 12px; padding: 3px 10px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.checks.small { font-size: 14px; gap: 6px; margin: 14px 0; }
.checks.small li { padding-left: 22px; color: var(--muted); }
.empty { color: var(--muted); }

/* ---------- gioi thieu rut gon (trang chu) ---------- */
.about-teaser { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; }
.avatar-lg {
  width: 260px; height: 320px; object-fit: cover; object-position: center 20%; border-radius: 22px;
  border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(15, 23, 42, .4);
}
.about-teaser h2 { margin-bottom: 4px; }
.role { font-family: var(--mono); color: var(--accent); margin-bottom: 14px; font-size: 15px; }

/* ---------- trang gioi thieu ---------- */
.about-head { padding-top: 64px; }
.about-grid { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.about-photo { position: sticky; top: 90px; }
.about-photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%;
  border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(15, 23, 42, .45);
}
.photo-badge {
  position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line);
}
.photo-badge b { display: block; }
.photo-badge small { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.about-text h1 { font-size: clamp(32px, 5vw, 48px); max-width: none; }
.about-text .lead { margin: 14px 0 24px; }
.prose-lite p { color: var(--muted); margin-bottom: 14px; }
.prose-lite strong { color: var(--text); }
.mini-title { margin: 30px 0 14px; font-size: 18px; }
.timeline { list-style: none; border-left: 2px solid var(--line); padding-left: 22px; display: grid; gap: 18px; }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline b { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.timeline p { color: var(--muted); margin-top: 2px; }

/* ---------- du an ---------- */
.project {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .15s, transform .15s;
}
.project:hover { border-color: var(--accent); }
.project-top {
  position: relative; height: 120px; overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(circle at 85% 20%, rgba(255, 77, 94, .55), transparent 55%),
    var(--navy);
  display: flex; align-items: flex-end; justify-content: space-between; padding: 16px 18px;
}
.project-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); position: relative;
}
.p-ico svg { width: 24px; height: 24px; }
.p-meta {
  position: relative; font-family: var(--mono); font-size: 12px; color: #fff;
  background: rgba(0,0,0,.25); padding: 4px 10px; border-radius: 999px;
}
.project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-body h3 { font-size: 17px; line-height: 1.35; margin: 0; }
.project-body > p { color: var(--muted); font-size: 15px; }
.project-body .client { font-size: 13px; color: var(--accent); font-weight: 600; }
.project-body .more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.project .chips { margin-top: 6px; }

/* ---------- bao gia ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; align-items: stretch; }
.price-card {
  position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 24px; display: flex; flex-direction: column;
}
.price-card.hot { border: 2px solid var(--accent); box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--accent) 70%, transparent); }
.badge {
  position: absolute; top: -12px; right: 20px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.price-card h3 { font-size: 18px; }
.price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 10px; line-height: 1.1; }
.price-card.hot .price { color: var(--accent); }
.unit { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.pdesc { color: var(--muted); font-size: 14px; margin-top: 12px; }
.price-card .checks { flex: 1; align-content: start; }
.price-card .btn { justify-content: center; margin-top: 8px; }

.faq { max-width: 760px; margin-top: 64px; }
.faq h2 { margin-bottom: 18px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; background: var(--bg); }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* ---------- blog ---------- */
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tag-filter a {
  font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.tag-filter a.on, .tag-filter a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.post-card { display: flex; flex-direction: column; gap: 6px; }
.post-card .cover { margin: -26px -26px 14px; width: calc(100% + 52px); max-width: none; height: 160px; object-fit: cover; }
.post-card .more { margin-top: auto; }
.post-meta { font-family: var(--mono); font-size: 12px; color: var(--accent); }

.post { padding: 56px 0 72px; }
.post-wrap { max-width: 760px; }
.post .back { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.post .back:hover { color: var(--accent); }
.post h1 { font-size: clamp(30px, 5vw, 44px); max-width: none; margin: 8px 0 10px; }
.post .lead { margin: 0 0 30px; }
.post-cover { border-radius: 16px; margin-bottom: 30px; }
.post-body { font-size: 17px; line-height: 1.8; }
.post-body h2 { font-size: 24px; margin: 34px 0 10px; }
.post-body h3 { margin: 26px 0 8px; }
.post-body p { margin-bottom: 16px; }
.post-body ul { padding-left: 22px; margin-bottom: 16px; }
.post-body li { margin: 6px 0; }
.post-body a { color: var(--accent); text-decoration: underline; }
.author {
  display: flex; gap: 14px; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}
.author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 15%; }
.author b { display: block; }
.author small { color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { padding: 110px 0 90px; text-align: left; }
.nf-code {
  font-family: var(--mono); font-size: clamp(80px, 16vw, 160px); font-weight: 700; line-height: 1;
  background: linear-gradient(120deg, var(--accent), #6b7cff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound .actions { margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .about-teaser, .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { position: relative; top: 0; max-width: 360px; }
  .avatar-lg { width: 200px; height: 250px; }
}
