/*
 * ZODIAC – Trang chủ phần dưới (Phase 3: REQ-008 → REQ-011).
 * Khách hàng & Đối tác · Zodiac Building · Tin tức · Liên hệ. Chỉ nạp ở trang chủ, sau zd-home-top.css.
 * Tiền tố .zdh-pz / .zdh-bld / .zdh-news / .zdh-ct (mọi rule nằm trong .zd-home). Kích thước theo vw lấy từ mockup V25.
 * Nút/ô nhập dùng token ở tokens.css (--zd-blue, --zd-navy, --zd-icy, --zd-accent, --zd-border).
 * Các rule .zd-pz-* trong zd-home.css KHÔNG dùng ở đây (chỉ còn phục vụ trang Về Zodiac cho tới Phase 4).
 */

/* ---------- Khách hàng & Đối tác (REQ-008) ----------
   Nền #EAF2FC + bản đồ thế giới mờ (ảnh), tiêu đề căn giữa, 2 hàng logo chạy ngược chiều, dừng khi rê chuột, không có nút Tạm dừng. */
.zd-home .zdh-pz{position:relative;isolation:isolate;overflow:hidden;padding:clamp(45px,5vw,88px) 0;background:linear-gradient(#ffffff22,#ffffff33),var(--zdh-pz-bg) center/cover no-repeat,var(--zdh-pz-color,#eaf2fc);color:var(--zd-navy)}
.zd-home .zdh-pz__head{text-align:center;margin:0 auto clamp(20px,3vw,42px);padding:0 5%}
.zd-home .zdh-pz__head h2{margin:0;color:var(--zd-blue);font-size:clamp(30px,4vw,58px);font-weight:800;line-height:1.15;letter-spacing:-.025em}
.zd-home .zdh-pz__head p{margin:12px auto 0;color:#526174;font-size:clamp(15px,1.3vw,20px);line-height:1.5}
.zd-home .zdh-pz__rows{display:grid;gap:clamp(14px,2vw,28px)}
.zd-home .zdh-pz__win{overflow:hidden;width:100%;min-width:0}
.zd-home .zdh-pz__track{display:flex;width:max-content;animation:zdh-pz-move var(--zdh-pz-dur,50s) linear infinite;will-change:transform}
.zd-home .zdh-pz__track--rev{animation-direction:reverse}
/* Dừng cả 2 hàng khi rê chuột vào vùng logo; dừng khi section ngoài màn hình (JS thêm .zd-off, REQ-024) */
.zd-home .zdh-pz__rows:hover .zdh-pz__track,.zd-home .zdh-pz.zd-off .zdh-pz__track{animation-play-state:paused}
.zd-home .zdh-pz__set{display:flex;flex:none;align-items:center;gap:clamp(20px,3vw,48px);margin:0;padding:0 clamp(20px,3vw,48px) 0 0;list-style:none}
.zd-home .zdh-pz__logo{display:flex;flex:none;align-items:center;justify-content:center;width:clamp(100px,11vw,180px);height:clamp(64px,6.5vw,105px);margin:0;padding:6px;overflow:hidden;list-style:none}
/* Logo: object-fit contain, không khung viền, không phóng to ảnh nhỏ; multiply để nền trắng của file logo hòa vào nền xanh nhạt */
.zd-home .zdh-pz__logo img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;object-position:center;border:0;box-shadow:none;background:transparent;mix-blend-mode:multiply}
@keyframes zdh-pz-move{to{transform:translateX(-50%)}}

/* ---------- Zodiac Building (REQ-009) ----------
   Nền navy/trời sao + vệt sáng cong; ảnh tòa nhà bên phải có mask chuyển sắc mượt; chữ là HTML thật. Chiều cao ≈ tỷ lệ 1672:941 của mockup. */
.zd-home .zdh-bld{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;box-sizing:border-box;min-height:clamp(460px,56.28vw,1100px);padding:clamp(40px,6.4vw,130px) 5.8%;background:radial-gradient(ellipse at 78% 72%,#1a7bcb 0%,#0b4f98 24%,#06316a 46%,#041f48 72%,#03162f 100%);color:#fff}
.zd-home .zdh-bld__photo{position:absolute;z-index:0;inset:0 0 0 auto;width:58%;height:100%;margin:0;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#0006 18%,#000 50%);mask-image:linear-gradient(90deg,transparent 0%,#0006 18%,#000 50%);pointer-events:none}
.zd-home .zdh-bld__photo img{display:block;width:100%;max-width:none;height:100%;object-fit:cover;object-position:55% 12%}
/* Trời sao (chấm sáng tĩnh) + lớp tối dần về bên trái cho chữ dễ đọc */
.zd-home .zdh-bld:before{content:'';position:absolute;z-index:1;inset:0;pointer-events:none;background:
	radial-gradient(circle 1.6px at 6% 12%,#fff,#fff0),radial-gradient(circle 1.2px at 14% 30%,#ffffffd0,#fff0),radial-gradient(circle 1.4px at 23% 8%,#fff,#fff0),
	radial-gradient(circle 1.1px at 31% 22%,#ffffffb0,#fff0),radial-gradient(circle 1.5px at 40% 6%,#fff,#fff0),radial-gradient(circle 1.2px at 48% 17%,#ffffffc0,#fff0),
	radial-gradient(circle 1.6px at 57% 9%,#fff,#fff0),radial-gradient(circle 1.1px at 66% 24%,#ffffffb0,#fff0),radial-gradient(circle 1.5px at 74% 5%,#fff,#fff0),
	radial-gradient(circle 1.2px at 83% 15%,#ffffffd0,#fff0),radial-gradient(circle 1.7px at 91% 8%,#fff,#fff0),radial-gradient(circle 1.1px at 96% 26%,#ffffffb0,#fff0),
	radial-gradient(circle 1.2px at 3% 46%,#ffffff90,#fff0),radial-gradient(circle 1.1px at 11% 68%,#ffffff80,#fff0),radial-gradient(circle 1.3px at 28% 88%,#ffffff90,#fff0),
	linear-gradient(180deg,#03162f99 0%,#03162f00 40%),linear-gradient(90deg,#03162f 0%,#03162fc0 30%,#03162f40 52%,transparent 66%)}
/* Vệt sáng cong */
.zd-home .zdh-bld:after{content:'';position:absolute;z-index:1;inset:0;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1782 883' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop stop-color='%233ca9ff' stop-opacity='0'/%3E%3Cstop offset='.48' stop-color='%23a5e4ff'/%3E%3Cstop offset='1' stop-color='%233ca9ff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='8'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M-80 890 Q690 930 960 510 T1480 -35' fill='none' stroke='url(%23g)' stroke-width='12' filter='url(%23b)'/%3E%3Cpath d='M-80 890 Q690 930 960 510 T1480 -35' fill='none' stroke='url(%23g)' stroke-width='2'/%3E%3C/svg%3E") center/100% 100% no-repeat}
.zd-home .zdh-bld__copy{position:relative;z-index:3;width:49%;min-width:0}
.zd-home .zdh-bld__copy h2{margin:0 0 2.6vw;color:#fff;font-size:clamp(34px,5.35vw,100px);font-weight:800;line-height:1.1;letter-spacing:-.035em;white-space:nowrap}
.zd-home .zdh-bld__copy p{margin:0 0 2.2vw;max-width:100%;color:#f4f8ff;font-size:clamp(15px,1.58vw,30px);line-height:1.5}
.zd-home .zdh-bld__tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25vw 1vw;max-width:93%;margin:0 0 3vw;padding:0;list-style:none}
.zd-home .zdh-bld__tiles li{display:flex;align-items:center;gap:1.1vw;min-width:0;min-height:clamp(54px,6.9vw,130px);margin:0;padding:1vw 1.5vw;border:1px solid #73c9f9;border-radius:clamp(10px,1.35vw,26px);background:linear-gradient(115deg,#063968bd,#207ac373);box-shadow:inset 0 0 18px #79caff26,0 0 7px #00b8ff20;color:#fff;font-size:clamp(13px,1.35vw,27px);font-weight:600;line-height:1.3;text-wrap:balance}
.zd-home .zdh-bld__tiles svg{flex:none;box-sizing:content-box;width:clamp(24px,3vw,58px);height:clamp(24px,3vw,58px);padding-right:1.3vw;border-right:1px solid #91caff66}
.zd-home .zdh-bld__cta{display:inline-flex;align-items:center;gap:1.4vw;padding:clamp(12px,1.1vw,22px) clamp(24px,2.3vw,46px);border-radius:999px;background:#fff;color:#0b3d91;font-size:clamp(16px,1.5vw,30px);font-weight:700;line-height:1.3;text-decoration:none;white-space:nowrap;transition:background .2s,box-shadow .2s,transform .2s}
.zd-home .zdh-bld__cta svg{width:clamp(18px,1.6vw,32px);height:clamp(18px,1.6vw,32px)}
.zd-home .zdh-bld__cta:hover,.zd-home .zdh-bld__cta:focus-visible{background:#eaf3ff;color:#0b3d91;box-shadow:0 0 14px #00b8ff77;transform:translateY(-2px)}

/* ---------- Tin tức (REQ-010) ---------- */
.zd-home .zdh-news{padding:clamp(45px,4.6vw,86px) 5% clamp(50px,5.2vw,96px);background:radial-gradient(circle,#1c3f9508 1px,transparent 1.5px) 0 0/18px 18px,#fff;color:var(--zd-text)}
.zd-home .zdh-news>h2{margin:0 0 clamp(28px,3.2vw,46px);text-align:center;color:var(--zd-blue);font-size:clamp(32px,3.5vw,60px);font-weight:700;line-height:1.15}
.zd-home .zdh-news>h2:after{content:'';display:block;width:100px;height:2px;margin:20px auto 0;background:var(--zd-blue)}
.zd-home .zdh-news__grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:clamp(18px,2.4vw,40px);max-width:1500px;margin:0 auto}
.zd-home .zdh-news__feat,.zd-home .zdh-news__item{position:relative;display:flex;min-width:0;overflow:hidden;background:#fff;border:1px solid var(--zd-line);border-radius:clamp(12px,1.2vw,20px);box-shadow:0 14px 36px #0a1f4410;transition:box-shadow .2s,transform .2s}
.zd-home .zdh-news__feat:hover,.zd-home .zdh-news__item:hover{box-shadow:0 18px 44px #0a1f4422;transform:translateY(-2px)}
.zd-home .zdh-news__feat{flex-direction:column}
.zd-home .zdh-news__thumb{position:relative;margin:0;overflow:hidden;background:#e9eef6}
.zd-home .zdh-news__feat .zdh-news__thumb{aspect-ratio:16/9}
.zd-home .zdh-news__thumb img{display:block;width:100%;max-width:none;height:100%;object-fit:cover}
.zd-home .zdh-news__body{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:clamp(16px,1.8vw,30px)}
.zd-home .zdh-news__date{display:block;margin:0 0 8px;color:var(--zd-blue);font-size:clamp(12px,.95vw,15px);font-weight:600;letter-spacing:.02em}
.zd-home .zdh-news__body h3{margin:0;color:var(--zd-text);font-size:clamp(17px,1.35vw,23px);font-weight:700;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.zd-home .zdh-news__feat .zdh-news__body h3{font-size:clamp(20px,1.85vw,31px);line-height:1.3}
.zd-home .zdh-news__body h3 a{color:inherit;text-decoration:none}
.zd-home .zdh-news__body h3 a:hover,.zd-home .zdh-news__body h3 a:focus-visible{color:var(--zd-blue)}
/* Cả thẻ là vùng bấm của liên kết tiêu đề (một liên kết duy nhất cho mỗi bài) */
.zd-home .zdh-news__body h3 a:after{content:'';position:absolute;inset:0;z-index:1}
.zd-home .zdh-news__body p{margin:12px 0 0;color:#5c6673;font-size:clamp(14px,1.1vw,18px);line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.zd-home .zdh-news__side{display:grid;grid-template-rows:1fr 1fr;gap:clamp(18px,2.4vw,40px);min-width:0}
.zd-home .zdh-news__item{flex-direction:row}
.zd-home .zdh-news__item .zdh-news__thumb{flex:0 0 40%}
.zd-home .zdh-news__item .zdh-news__body{flex:1}
.zd-home .zdh-news__all{margin-top:clamp(26px,2.6vw,42px);text-align:center}
.zd-home .zdh-news__btn{display:inline-flex;align-items:center;gap:18px;padding:15px 32px;border-radius:30px;background:var(--zd-blue);color:#fff;font-weight:600;text-decoration:none;box-shadow:0 5px 14px #1c3f9520;transition:background .2s,box-shadow .2s}
.zd-home .zdh-news__btn:hover,.zd-home .zdh-news__btn:focus-visible{background:#132b68;color:#fff;box-shadow:0 0 14px #00b8ff77}
/* Ít bài: 2 bài → bài phụ duy nhất nằm giữa cột phải; 1 bài → chỉ bài lớn, căn giữa */
.zd-home .zdh-news--n2 .zdh-news__side{grid-template-rows:auto;align-content:center}
.zd-home .zdh-news--n1 .zdh-news__grid{grid-template-columns:minmax(0,820px);justify-content:center}

/* ---------- Liên hệ (REQ-011) ---------- */
.zd-home .zdh-ct{position:relative;overflow:hidden;background:var(--zd-icy);color:var(--zd-navy);padding:clamp(36px,5vw,80px) 5%}
.zd-home .zdh-ct__globe{position:absolute;top:-150px;left:28%;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,#1c3f9518 1px,transparent 2px) 0 0/7px 7px;-webkit-mask-image:radial-gradient(circle,#000 20%,transparent 70%);mask-image:radial-gradient(circle,#000 20%,transparent 70%);pointer-events:none}
.zd-home .zdh-ct__grid{position:relative;display:grid;grid-template-columns:1.12fr 1fr;gap:clamp(28px,5vw,84px);align-items:center;max-width:1600px;margin:auto}
.zd-home .zdh-ct__left{min-width:0}
.zd-home .zdh-ct__left h2{margin:0 0 24px;color:var(--zd-blue);font-size:clamp(28px,3vw,52px);font-weight:800;line-height:1.15}
.zd-home .zdh-ct__left>p{margin:0;color:#344054;font-size:clamp(15px,1.4vw,20px);line-height:1.6}
.zd-home .zdh-ct__info{display:flex;flex-wrap:wrap;gap:18px;margin:28px 0;align-items:flex-start}
/* Email/Hotline giữ đúng độ rộng nội dung (mockup bị cắt mất chữ "n" cuối của email); địa chỉ nhận phần còn lại */
.zd-home .zdh-ct__info>a,.zd-home .zdh-ct__info>div{display:flex;gap:10px;align-items:flex-start;color:inherit;font-size:14px;line-height:1.6;text-decoration:none}
.zd-home .zdh-ct__info>a{flex:0 0 auto}
.zd-home .zdh-ct__info>div{flex:1 1 200px;min-width:200px}
.zd-home .zdh-ct__info strong{display:block;color:var(--zd-blue)}
.zd-home .zdh-ct__info>a:hover{color:var(--zd-blue)}
.zd-home .zdh-ct__ico{display:grid;flex:none;place-items:center;width:40px;height:40px;border-radius:10px;background:#fff;color:var(--zd-blue)}
.zd-home .zdh-ct__ico svg{width:22px;height:22px}
.zd-home .zdh-ct__map{display:block;position:relative;overflow:hidden;border:2px solid var(--zd-blue);border-radius:20px;background:#f1f5fa}
.zd-home .zdh-ct__map img{display:block;width:100%;max-width:none;height:auto}
.zd-home .zdh-ct__form{position:relative;isolation:isolate;display:grid;gap:12px;padding:clamp(22px,3.5vw,55px);background:#fff;border:1px solid #edf0f5;border-radius:24px;box-shadow:0 16px 48px #09142618}
.zd-home .zdh-ct__form:after{content:'';position:absolute;inset:30px -18px -18px 60%;z-index:-2;background:var(--zd-blue);border-radius:0 0 22px 0}
.zd-home .zdh-ct__form:before{content:'';position:absolute;inset:0;z-index:-1;background:#fff;border-radius:24px}
.zd-home .zdh-ct__form label{display:flex;align-items:center;gap:12px;padding:0 15px;border:1px solid #dce1e8;border-radius:5px;color:var(--zd-blue)}
.zd-home .zdh-ct__form label svg{flex:none;width:20px;height:20px}
.zd-home .zdh-ct__form input,.zd-home .zdh-ct__form select,.zd-home .zdh-ct__form textarea{width:100%;min-width:0;padding:17px 0;border:0;background:transparent;color:var(--zd-navy);font:inherit;box-shadow:none;outline:0}
.zd-home .zdh-ct__form textarea{height:112px;min-height:112px;resize:vertical}
.zd-home .zdh-ct__area{align-items:flex-start!important}
.zd-home .zdh-ct__area svg{margin-top:18px}
.zd-home .zdh-ct__form label:focus-within{border-color:var(--zd-accent);box-shadow:0 0 8px #00b8ff44}
.zd-home .zdh-ct__form label.zdh-bad{border-color:#c0392b}
.zd-home .zdh-ct__hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0}
.zd-home .zdh-ct__form button{display:flex;align-items:center;justify-content:center;gap:10px;padding:18px;border:0;border-radius:8px;background:var(--zd-blue);color:#fff;font-size:18px;font-weight:700;cursor:pointer;transition:background .2s,box-shadow .2s}
.zd-home .zdh-ct__form button svg{width:20px;height:20px}
.zd-home .zdh-ct__form button:hover{background:var(--zd-navy);box-shadow:0 0 14px #00b8ff77}
.zd-home .zdh-ct__form button[disabled]{opacity:.6;cursor:wait}
.zd-home .zdh-ct__status{min-height:1.5em;margin:0;color:#607086;font-size:14px;line-height:1.5}
.zd-home .zdh-ct__status.is-ok{color:#1b7f4b}
.zd-home .zdh-ct__status.is-err{color:#c0392b}

/* ---------- Responsive ---------- */
@media(max-width:1050px){
  .zd-home .zdh-news__item .zdh-news__thumb{flex-basis:38%}
}
@media(max-width:900px){
  /* Building: ảnh nằm trên cùng (mờ dần xuống), chữ xếp bên dưới */
  .zd-home .zdh-bld{display:block;min-height:0;padding:clamp(260px,66vw,500px) 6% 45px;background:#032044}
  .zd-home .zdh-bld__photo{inset:0 0 auto 0;width:100%;height:clamp(300px,74vw,550px);-webkit-mask-image:linear-gradient(#000 45%,transparent 100%);mask-image:linear-gradient(#000 45%,transparent 100%)}
  .zd-home .zdh-bld__photo img{object-position:center 25%}
  .zd-home .zdh-bld:before{background:radial-gradient(circle 1.6px at 8% 10%,#fff,#fff0),radial-gradient(circle 1.2px at 30% 22%,#ffffffd0,#fff0),radial-gradient(circle 1.5px at 52% 8%,#fff,#fff0),radial-gradient(circle 1.2px at 74% 18%,#ffffffc0,#fff0),radial-gradient(circle 1.6px at 92% 9%,#fff,#fff0)}
  .zd-home .zdh-bld:after{display:none}
  .zd-home .zdh-bld__copy{width:100%}
  .zd-home .zdh-bld__copy h2{margin-bottom:18px;font-size:clamp(34px,8.5vw,64px)}
  .zd-home .zdh-bld__copy p{margin-bottom:24px;font-size:clamp(15px,3.4vw,22px)}
  .zd-home .zdh-bld__tiles{gap:10px;margin-bottom:25px}
  .zd-home .zdh-bld__tiles li{gap:12px;min-height:60px;padding:12px;border-radius:12px;font-size:clamp(13px,2.8vw,19px)}
  .zd-home .zdh-bld__tiles svg{width:clamp(26px,5vw,38px);height:clamp(26px,5vw,38px);padding-right:12px}
  .zd-home .zdh-bld__cta{gap:14px;padding:14px 26px;font-size:clamp(16px,3vw,22px)}
  .zd-home .zdh-bld__cta svg{width:20px;height:20px}
  /* Tin tức: 1 cột */
  .zd-home .zdh-news{padding:45px 6% 55px}
  .zd-home .zdh-news__grid{grid-template-columns:minmax(0,1fr)}
  .zd-home .zdh-news__side{grid-template-rows:auto}
  .zd-home .zdh-news--n1 .zdh-news__grid{grid-template-columns:minmax(0,1fr)}
  /* Liên hệ */
  .zd-home .zdh-ct__grid{grid-template-columns:1fr}
  .zd-home .zdh-ct__form:after{inset:20px -9px -9px 60%}
}
@media(max-width:600px){
  .zd-home .zdh-pz{padding:32px 0}
  .zd-home .zdh-pz__head h2{font-size:clamp(26px,7vw,34px)}
  .zd-home .zdh-pz__logo{width:110px;height:70px}
}
@media(max-width:480px){
  .zd-home .zdh-bld__tiles{grid-template-columns:1fr}
  .zd-home .zdh-news__item .zdh-news__thumb{flex-basis:36%}
  .zd-home .zdh-news__body{padding:14px}
  .zd-home .zdh-news__item .zdh-news__body h3{font-size:16px}
  .zd-home .zdh-ct__info{display:grid;grid-template-columns:1fr}
  .zd-home .zdh-ct__form{padding:20px}
  .zd-home .zdh-ct__left h2{font-size:30px}
}
@media(prefers-reduced-motion:reduce){
  /* Không chạy marquee: hàng logo cuộn ngang tay được, ẩn bản sao nối vòng */
  .zd-home .zdh-pz__track{animation:none}
  .zd-home .zdh-pz__win{overflow-x:auto}
  .zd-home .zdh-pz__set[aria-hidden=true]{display:none}
  .zd-home .zdh-bld__cta,.zd-home .zdh-news__feat,.zd-home .zdh-news__item,.zd-home .zdh-news__btn,.zd-home .zdh-ct__form button{transition:none}
  .zd-home .zdh-bld__cta:hover,.zd-home .zdh-news__feat:hover,.zd-home .zdh-news__item:hover{transform:none}
}
