/* =========================================================
 *  Trang chi tiết dự án (vinh-an-hoa.html)
 *  Dùng chung styles.css; file này chỉ thêm phần riêng (tiền tố pd-).
 * ========================================================= */
.gold-d { color: var(--gold); }
html { scroll-padding-top: 118px; }   /* chừa chỗ cho header + thanh mục lục */

/* ---------- Hero ---------- */
.pd-hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--navy-950); overflow: hidden; }
.pd-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
.pd-hero__shade { position: absolute; inset: auto 0 0; height: 230px; background: linear-gradient(180deg, rgba(15, 17, 48, 0) 0%, rgba(15, 17, 48, .55) 55%, rgba(15, 17, 48, .75) 100%); }   /* chỉ phủ phần nút + 4 ô số */
.pd-hero__veil { position: absolute; inset: 0 0 auto; height: 380px; background: linear-gradient(180deg, rgba(15, 17, 48, .62) 0%, rgba(15, 17, 48, .42) 55%, rgba(15, 17, 48, 0) 100%); pointer-events: none; }   /* phủ mờ từ header xuống hết tên dự án */
.pd-hero__head { position: relative; isolation: isolate; align-self: flex-start; }
.pd-hero__content { position: relative; flex: 1; display: flex; flex-direction: column; padding: 128px 0 34px; }
.pd-hero__content .hero__cta { margin-top: auto; padding-top: 40px; }   /* cụm tên dự án nằm trên mặt biển, nút xuống dưới */
.pd-hero__title { font-size: clamp(44px, 7vw, 84px); font-weight: 800; letter-spacing: -.02em; line-height: 1.04; margin: 6px 0 16px; }
.pd-hero__lead { max-width: 600px; font-size: 18px; font-weight: 300; color: rgba(255, 255, 255, .9); text-shadow: 0 2px 12px rgba(8, 9, 26, .5); }
.pd-crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.pd-crumb a:hover { color: var(--gold-soft); }
.pd-crumb b { color: #fff; font-weight: 600; }
.pd-stats { position: relative; list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); background: rgba(15, 17, 48, .2); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pd-stats li { padding: 18px 22px; border-left: 1px solid rgba(255, 255, 255, .12); }
.pd-stats li:first-child { border-left: 0; }
.pd-stats b { display: block; font-size: 28px; font-weight: 800; color: var(--gold-soft); line-height: 1.1; }
.pd-stats small { font-size: 15px; font-weight: 600; }
.pd-stats span { font-size: 13px; color: rgba(255, 255, 255, .75); }

/* ---------- Thanh mục lục ---------- */
.pd-subnav { position: sticky; top: 61px; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pd-subnav__inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 9px 0; }
.pd-subnav__inner::-webkit-scrollbar { display: none; }
.pd-subnav a { flex: none; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--navy); white-space: nowrap; transition: background .2s, color .2s; }
.pd-subnav a:hover, .pd-subnav a.is-active { background: var(--navy); color: #fff; }
/* Header trang chi tiết luôn nền trắng khi đã cuộn qua hero */
.pd-page .header.is-scrolled { box-shadow: none; }

/* ---------- Bố cục chung ---------- */
.pd-sec--white { background: #fff; }
.pd-head { max-width: 760px; margin-bottom: 36px; }
.pd-lead { font-size: 18px; color: var(--ink); margin: 18px 0 14px; }
.pd-lead--light { color: rgba(255, 255, 255, .82); }
.pd-text { color: var(--muted); font-size: 16px; }
.pd-small { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.pd-note { margin: 18px 0 0; font-size: 15px; color: var(--muted); font-style: italic; }
.pd-source { margin: 26px 0 0; font-size: 13px; color: rgba(255, 255, 255, .55); font-style: italic; }
.pd-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.pd-split--media { grid-template-columns: 1.1fr 1fr; align-items: center; }
.pd-split--map { grid-template-columns: 1fr 1fr; gap: 48px; }
.pd-split--top { grid-template-columns: 1fr 1fr; gap: 56px; }
.pd-facts { margin: 6px 0 0; }
.pd-callout { margin: 30px 0 0; padding: 18px 22px; border-left: 3px solid var(--gold); background: rgba(201, 162, 75, .08); border-radius: 0 12px 12px 0; color: var(--ink); font-size: 16px; }
.pd-callout--sm { margin-top: 18px; font-size: 15px; }
.pd-callout b { color: var(--navy); }

/* Ảnh */
.pd-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.pd-photos a, .pd-map a, .pd-figure a, .pd-gallery a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--navy-900); }
/* Ảnh luôn hiển thị trọn khung hình gốc, không cắt xén */
.pd-photos { align-items: start; }
.pd-photos img, .pd-figure img, .pd-gallery img, .pd-map img { display: block; width: 100%; height: auto; transition: filter .35s; }
.pd-photos a:hover img, .pd-figure a:hover img, .pd-gallery a:hover img, .pd-map a:hover img { filter: brightness(1.08) saturate(1.05); }
.pd-figure { margin: 0; }
.pd-figure a { box-shadow: var(--shadow); }
.pd-figure--sm a { box-shadow: none; }
.pd-figure figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

/* ---------- Phân khu ---------- */
.pd-zones { display: grid; gap: 14px; margin: 26px 0 22px; }
.pd-zone { padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.pd-zone__name { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pd-zone__nums { display: flex; gap: 28px; color: var(--muted); font-size: 15px; }
.pd-zone__nums b { font-size: 30px; font-weight: 800; color: var(--navy); margin-right: 2px; }
.pd-bar { height: 6px; margin-top: 12px; border-radius: 6px; background: var(--line); overflow: hidden; }
.pd-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--navy), #4a54b8); }

/* ---------- Vị trí ---------- */
.pd-map a { box-shadow: var(--shadow); }
.pd-dist { list-style: none; margin: 0 0 26px; padding: 0; position: relative; }
.pd-dist::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; border-left: 2px dashed rgba(201, 162, 75, .55); }
.pd-dist li { position: relative; display: flex; align-items: baseline; gap: 16px; padding: 8px 0 8px 32px; }
.pd-dist li::before { content: ""; position: absolute; left: 0; top: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); box-sizing: border-box; }
.pd-dist b { min-width: 76px; font-size: 22px; font-weight: 800; color: var(--navy); }
.pd-dist span { color: var(--muted); font-size: 16px; }
.pd-axes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-axes div { padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.pd-axes h4 { font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.pd-axes p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Động lực Chu Lai ---------- */
.pd-kpis { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pd-kpis li { padding: 20px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.pd-kpis b { display: block; font-size: 32px; font-weight: 800; color: var(--gold-soft); line-height: 1.1; }
.pd-kpis small { font-size: 16px; }
.pd-kpis span { display: block; margin-top: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.pd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pd-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .25s, transform .25s; }
.pd-card:hover { border-color: rgba(231, 207, 143, .45); transform: translateY(-4px); }
.pd-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.pd-card__media a { display: block; height: 100%; }
.pd-card__media[data-gallery] { background: var(--navy-950); }
.pd-card__media img { width: 100%; height: 100%; object-fit: contain; transition: filter .35s; }
.pd-card:hover .pd-card__media img { filter: brightness(1.08); }
.pd-card__media--stat { display: flex; align-items: center; gap: 16px; padding: 0 26px; background: radial-gradient(400px 200px at 20% 10%, rgba(231, 207, 143, .18), transparent 60%), linear-gradient(140deg, #2d3277, var(--navy-950)); }
.pd-card__media--stat b { font-size: 64px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--gold-soft); }
.pd-card__media--stat span { font-size: 15px; color: rgba(255, 255, 255, .85); font-weight: 500; }
.pd-card__body { padding: 20px 22px 24px; }
.pd-card__body h3 { font-size: 18px; color: #fff; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pd-card__body p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .72); }
.pd-badge { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: var(--navy-950); background: var(--gold-soft); }

/* ---------- Lộ trình ---------- */
.pd-rail { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-rail li { padding: 16px 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.pd-rail b { display: block; font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.pd-rail small { font-size: 14px; }
.pd-rail span { font-size: 13.5px; color: var(--muted); }
.pd-timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.pd-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; border-left: 2px solid rgba(201, 162, 75, .45); }
.pd-timeline li { position: relative; padding: 0 0 26px; }
.pd-timeline li:last-child { padding-bottom: 0; }
.pd-timeline li::before { content: ""; position: absolute; left: -30px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(201, 162, 75, .18); }
.pd-timeline b { display: block; font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.1; margin-bottom: 4px; }
.pd-timeline p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Sản phẩm ---------- */
.pd-product { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.pd-big { display: flex; align-items: center; gap: 20px; margin: 4px 0 16px; }
.pd-big > b { font-size: clamp(80px, 8.6vw, 120px); font-weight: 800; line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--gold); }
.pd-big .title { white-space: nowrap; font-size: clamp(26px, 3vw, 40px); }
.pd-blocks { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 22px; }
.pd-blocks span { padding: 11px 4px; text-align: center; font-family: var(--font-mark); font-weight: 600; letter-spacing: .08em; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 10px; background: #fff; }
.pd-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.pd-prices div { padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.pd-prices div:last-child { grid-column: 1 / -1; background: var(--navy); border-color: var(--navy); }
.pd-prices b { display: block; font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.15; }
.pd-prices small { font-size: 15px; }
.pd-prices span { font-size: 13.5px; color: var(--muted); }
.pd-prices div:last-child b { color: var(--gold-soft); }
.pd-prices div:last-child span { color: rgba(255, 255, 255, .72); }
.pd-product .pd-facts { margin-top: 18px; }

/* ---------- Đầu tư ---------- */
.pd-invest { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.pd-why { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 30px; }
.pd-why div { padding: 18px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.pd-why h4 { color: var(--gold-soft); font-size: 16px; margin-bottom: 6px; }
.pd-why p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .75); }
.pd-sub { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .85); margin: 0 0 14px; }
.pd-sub small { text-transform: none; letter-spacing: 0; font-weight: 400; color: rgba(255, 255, 255, .55); }
.pd-scen__row { display: grid; grid-template-columns: 96px 1fr 62px; align-items: center; gap: 14px; }
.pd-scen__name { font-size: 15px; font-weight: 600; color: #fff; }
.pd-scen__bar { height: 12px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pd-scen__bar i { display: block; height: 100%; border-radius: 8px; background: #6c78d8; }
.pd-scen__bar--gold i { background: var(--gold-soft); }
.pd-scen__row b { text-align: right; font-size: 18px; font-weight: 800; color: #fff; }
.pd-scen__desc { margin: 6px 0 18px 110px; font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.pd-fit { display: grid; gap: 14px; }
.pd-fit__col { padding: 22px 24px; border-radius: var(--radius); }
.pd-fit__col--yes { background: rgba(231, 207, 143, .1); border: 1px solid rgba(231, 207, 143, .35); }
.pd-fit__col--no { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.pd-fit__col h4 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; color: var(--gold-soft); }
.pd-fit__col--no h4 { color: rgba(255, 255, 255, .7); }
.pd-fit__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd-fit__col li { position: relative; padding-left: 28px; font-size: 15px; color: rgba(255, 255, 255, .88); }
.pd-fit__col li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--navy-950); background: var(--gold-soft); }
.pd-fit__col--no li::before { content: "–"; color: #fff; background: rgba(255, 255, 255, .2); }

/* ---------- Hỏi & đáp ---------- */
.pd-faq-wrap { max-width: 900px; }
.pd-faq { display: grid; gap: 10px; }
.pd-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: background .2s, border-color .2s; }
.pd-faq details[open] { background: #fff; border-color: rgba(201, 162, 75, .5); box-shadow: 0 10px 30px -22px rgba(23, 26, 64, .45); }
.pd-faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; position: relative; font-weight: 700; color: var(--navy); font-size: 16.5px; }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 500; color: var(--navy); background: rgba(38, 42, 98, .08); transition: transform .25s; }
.pd-faq details[open] summary::after { content: "–"; background: var(--gold-soft); }
.pd-faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.pd-motto { margin: 34px 0 0; text-align: center; font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; color: var(--navy); }

/* ---------- Thư viện ảnh ---------- */
.pd-gallery { display: grid; grid-template-columns: repeat(6, 1fr); align-items: start; gap: 12px; }
.pd-gallery > a { grid-column: span 2; }
.pd-gallery > a:nth-child(-n+2) { grid-column: span 3; }
.pd-back { display: flex; justify-content: center; margin-top: 34px; }
.pd-back__link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 600; transition: background .2s, color .2s; }
.pd-back__link svg { width: 18px; height: 18px; }
.pd-back__link:hover { background: var(--navy); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pd-cards { grid-template-columns: 1fr 1fr; }
  .pd-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 112px; }
  .pd-hero__shade { height: 300px; }
  .pd-hero__veil { height: 400px; }
  .pd-hero { min-height: 92svh; }
  .pd-hero__content { padding-top: 100px; }
  .pd-hero__lead { font-size: 16px; }
  .pd-stats { grid-template-columns: 1fr 1fr; margin-bottom: 22px; }
  .pd-stats li { padding: 14px 16px; }
  .pd-stats li:nth-child(3) { border-left: 0; }
  .pd-stats li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .pd-stats b { font-size: 22px; }
  .pd-split, .pd-split--media, .pd-split--map, .pd-split--top, .pd-product, .pd-invest { grid-template-columns: 1fr; gap: 30px; }
  .pd-head { margin-bottom: 26px; }
  .pd-lead { font-size: 16.5px; }
  .pd-photos { grid-template-columns: 1fr; margin-top: 28px; }
  .pd-axes, .pd-why { grid-template-columns: 1fr; }
  .pd-scen__desc { margin-left: 0; }
  .pd-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pd-gallery > a, .pd-gallery > a:nth-child(-n+2) { grid-column: auto; }
  .pd-gallery > a.pd-gallery__big:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .pd-cards { grid-template-columns: 1fr; }
  .pd-kpis { gap: 10px; }
  .pd-kpis li { padding: 14px 14px; }
  .pd-kpis b { font-size: 22px; }
  .pd-kpis small { font-size: 13px; }
  .pd-kpis span { font-size: 12.5px; }
  .pd-kpis br { display: none; }
  .pd-big { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pd-big > b { font-size: 84px; }
  .pd-big .title { font-size: 30px; }
  .pd-blocks { grid-template-columns: repeat(4, 1fr); }
  .pd-blocks span { padding: 10px 4px; font-size: 14px; }
  .pd-scen__row { grid-template-columns: 88px 1fr auto; gap: 10px; }
  .pd-scen__name { font-size: 14px; white-space: nowrap; }
  .pd-scen__row b { font-size: 16px; white-space: nowrap; }
  .pd-faq summary { font-size: 15.5px; padding: 16px 50px 16px 18px; }
  .pd-faq details p { padding: 0 18px 18px; }
}
@media (max-width: 360px) {
  .pd-hero__title { font-size: 36px; }
}
