/* Hướng Sáng: nền kem ấm (màu bảng hiệu "Sáng ấm"), chữ mực, nút xanh mái. Sọc tháp đỏ/xanh/mực là điểm nhớ. */
.dir-sang {
  --bg: #FBF7F0; --fg: var(--ink); --muted: #56636F; --line: #E6DECF; --surface: #fff;
  --cta-bg: var(--blue); --cta-fg: #fff; --header-bg: rgba(251, 247, 240, .96); --header-line: #E6DECF;
}
.dir-sang section { padding: clamp(56px, 8vw, 104px) 0; }
.dir-sang main h2 { font-size: clamp(var(--step-3), 3.4vw, var(--step-4)); }
.dir-sang .sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px;
  margin-bottom: 40px; }
.dir-sang .sec-head > div:first-child { display: grid; gap: 10px; max-width: 52ch; }
/* Vạch sọc tháp nhỏ trên mỗi tiêu đề khối */
.dir-sang .sec-head h2::before { content: ""; display: block; width: 34px; height: 14px; margin-bottom: 16px;
  background: linear-gradient(90deg, var(--red) 0 8px, transparent 8px 13px, var(--blue) 13px 21px, transparent 21px 26px, var(--navy) 26px); }
.motion .dir-sang .sec-head h2::before { clip-path: inset(100% 0 0 0); transition: clip-path .8s var(--ease) .25s; }
.motion .dir-sang .sec-head.in h2::before { clip-path: inset(0); }
.dir-sang .lede { font-size: var(--step-1); color: var(--muted); max-width: 38ch; }
.dir-sang .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.dir-sang .hero { padding-top: clamp(32px, 5vw, 72px); }
.dir-sang .hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.dir-sang .kicker { color: var(--blue); font-weight: 600; margin-bottom: 16px; }
.dir-sang .hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.04; letter-spacing: -.025em; margin-bottom: 20px; }
.dir-sang .search { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 4px; margin-top: 36px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 32px rgba(16, 36, 55, .08); }
.dir-sang .search label { display: grid; gap: 2px; padding: 8px 14px; border-radius: 12px; }
.dir-sang .search label + label { border-left: 1px solid var(--line); border-radius: 0; }
.dir-sang .lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.dir-sang .search select { font: 500 var(--step-0) "Be Vietnam Pro", sans-serif; color: var(--ink); border: 0;
  background: transparent; padding: 2px 0; min-width: 0; width: 100%; }
.dir-sang .search .btn { border-radius: 14px; }
.dir-sang .or { margin-top: 18px; color: var(--muted); }
.dir-sang .call-link { font-weight: 600; text-underline-offset: 4px; }
.dir-sang .hero-art { position: relative; padding-left: 56px; }
.dir-sang .hero-art .ph { aspect-ratio: 4 / 5; border-radius: 28px; }
.dir-sang .towers { position: absolute; left: 0; bottom: 0; display: flex; align-items: end; gap: 6px; height: 100%; }
.dir-sang .towers i { display: block; width: 12px; border-radius: 3px 3px 0 0; }
.dir-sang .towers i:nth-child(1) { height: 46%; background: var(--red); }
.dir-sang .towers i:nth-child(2) { height: 70%; background: var(--blue); }
.dir-sang .towers i:nth-child(3) { height: 32%; background: var(--navy); }

/* Ảnh hero: các ảnh chồng nhau, ảnh "on" hiện và trôi chậm (site.js đổi mỗi 5 giây). */
.dir-sang .hero-art .ph img.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease, transform 7s linear; }
.dir-sang .hero-art .ph img.slide.on { opacity: 1; }
.motion .dir-sang .hero-art .ph img.slide.on { transform: scale(1.07); }

/* Tải trang: ảnh mở ngang, sọc tháp mọc lên lần lượt như toà nhà. */
.motion .dir-sang .hero-art .ph { animation: open-x 1.4s .25s var(--ease-io) both; }
@keyframes open-x { from { clip-path: inset(0 0 0 100% round 28px); } to { clip-path: inset(0 round 28px); } }
.motion .dir-sang .towers i { transform-origin: bottom; animation: rise-up 1.3s var(--ease) both; }
.motion .dir-sang .towers i:nth-child(1) { animation-delay: .7s; }
.motion .dir-sang .towers i:nth-child(2) { animation-delay: .85s; }
.motion .dir-sang .towers i:nth-child(3) { animation-delay: 1s; }
@keyframes rise-up { from { transform: scaleY(0); } }

/* Lọc + lưới thẻ */
.dir-sang .chips { display: flex; gap: 8px; }
.dir-sang .chips button { font: 600 var(--step--1) "Be Vietnam Pro", sans-serif; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; cursor: pointer; min-height: 42px; }
.dir-sang .chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.dir-sang .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dir-sang .card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: opacity .9s var(--ease), transform .9s var(--ease), translate .4s var(--ease), box-shadow .4s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s; }
.dir-sang .card:hover { translate: 0 -6px; box-shadow: 0 22px 40px -18px rgba(16, 36, 55, .35); }
.dir-sang .card:hover .ph img, .dir-sang .project:hover .ph img { transform: scale(1.06); }
.dir-sang .card[hidden] { display: none; }
.dir-sang .card .ph { aspect-ratio: 3 / 2; }
.dir-sang .card-body { padding: 18px 20px 20px; display: grid; gap: 6px; flex: 1; grid-template-rows: auto auto auto 1fr; }
.dir-sang .card-top { display: flex; align-items: center; gap: 10px; font-size: var(--step--1); }
.dir-sang .badge { font-weight: 600; padding: 2px 10px; border-radius: 6px; }
.dir-sang .badge-rent { background: #E3EEF8; color: var(--navy); }
.dir-sang .badge-sale { background: #F7E3E5; color: var(--red); }
.dir-sang .where { color: var(--muted); }
.dir-sang .card h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.dir-sang .specs { color: var(--muted); font-size: var(--step--1); }
.dir-sang .card-foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 10px; }
.dir-sang .price { font-size: var(--step-1); font-weight: 800; }
.dir-sang .ask { font-weight: 600; font-size: var(--step--1); color: var(--blue); white-space: nowrap; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px;
  transition: background-size .35s var(--ease); }
.dir-sang .card:hover .ask { background-size: 0 1.5px; background-position: 100% 100%; }

/* Dự án: 2×2 ảnh trái chữ phải */
.dir-sang .projects { background: #fff; }
.dir-sang .project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.dir-sang .project { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.dir-sang .project .ph { aspect-ratio: 1; border-radius: 16px; }
.dir-sang .project h3 { font-size: var(--step-2); margin-bottom: 8px; }

/* Dịch vụ */
.dir-sang .service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dir-sang .service-grid li { display: grid; gap: 16px; align-content: start; }
.dir-sang .service-grid .icon { color: var(--blue); width: 44px; height: 44px; padding: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-sizing: content-box; }
.dir-sang .service-grid h3 { font-size: var(--step-1); margin-bottom: 6px; }
.dir-sang .service-grid p { font-size: var(--step--1); }

/* Ký gửi: khối mực */
.dir-sang .consign { background: var(--ink); color: #fff; }
.dir-sang .consign .lede { color: #A9B8C8; margin-top: 16px; }
.dir-sang .consign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.dir-sang .steps { display: grid; gap: 12px; }
.dir-sang .steps li { display: flex; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 16px;
  background: rgba(255, 255, 255, .06); font-size: var(--step-1); font-weight: 500; }
.dir-sang .steps .n { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); color: var(--ink); font-weight: 800; font-size: var(--step-0); }
.motion .dir-sang .steps .n { scale: 0; transition: scale .6s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i, 0) * 90ms + .35s); }
.motion .dir-sang .steps li.in .n { scale: 1; }

/* Về chúng tôi */
.dir-sang .about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.dir-sang .about h2 { margin-bottom: 16px; }
.dir-sang .about p { font-size: var(--step-1); max-width: 40ch; }
.dir-sang .storefront { margin: 0; }
.dir-sang .storefront img { border-radius: 24px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

@media (max-width: 1024px) {
  .dir-sang .cards { grid-template-columns: 1fr 1fr; }
  .dir-sang .service-grid { grid-template-columns: 1fr 1fr; }
  .dir-sang .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .dir-sang .hero-grid, .dir-sang .consign-grid, .dir-sang .about-grid { grid-template-columns: 1fr; }
  .dir-sang .search { grid-template-columns: 1fr 1fr; }
  .dir-sang .search label + label { border-left: 0; }
  .dir-sang .search .btn { grid-column: 1 / -1; }
  .dir-sang .hero-art { max-width: 460px; }
}
@media (max-width: 600px) {
  .dir-sang .cards { grid-template-columns: 1fr; }
  .dir-sang .project { grid-template-columns: 112px 1fr; gap: 16px; }
  .dir-sang .project h3 { font-size: var(--step-1); }
  .dir-sang .service-grid { grid-template-columns: 1fr; }
  .dir-sang .search { grid-template-columns: 1fr; }
  .dir-sang .hero-art { padding-left: 40px; }
  .dir-sang .hero-art .ph { aspect-ratio: 4 / 3.4; }
}
