/* ============================================================
   PTFV Đà Nẵng — Style các section trang public (trang chủ, dịch vụ, tin tức, liên hệ)
   ============================================================ */

/* ---------- HERO trang chủ ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 30%),           /* sheen trong phía trên */
    radial-gradient(1100px 520px at 88% -10%, rgba(60, 150, 230, .55), transparent 62%),
    radial-gradient(700px 420px at -10% 110%, rgba(245, 121, 32, .20), transparent 55%),
    linear-gradient(118deg, var(--navy-900) 0%, var(--navy-800) 52%, var(--navy-700) 100%);
}
/* lưới blueprint mờ — chất "thẩm định/đo lường" */
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 600px at 70% 30%, #000 30%, transparent 75%);
}
/* nét chéo cam lớn — motif logo */
.hero::after {
  content: ''; position: absolute; top: -20%; right: 6%; width: 130px; height: 150%;
  background: linear-gradient(180deg, var(--orange-500), rgba(245,121,32,.25));
  transform: skewX(-18deg); opacity: .2; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 84px; padding-bottom: 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #CFE0EF; background: rgba(255,255,255,.05);
  animation: heroFade .8s var(--ease) both;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 10px var(--orange-500); }
.hero h1 {
  color: #fff; font-size: clamp(34px, 5vw, 58px); font-weight: 900; letter-spacing: -.02em;
  margin: 20px 0 18px; animation: heroFade .8s .12s var(--ease) both;
}
.hero h1 .accent { color: var(--orange-500); position: relative; white-space: nowrap; }
.hero-sub { font-size: clamp(15.5px, 1.6vw, 18px); color: #B9CCDE; max-width: 560px; animation: heroFade .8s .22s var(--ease) both; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; animation: heroFade .8s .32s var(--ease) both; }

/* Ô tra cứu nhanh nổi trong hero */
.hero-lookup {
  background: rgba(255,255,255,.97); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 30px 30px 26px; color: var(--ink); animation: heroFade .9s .4s var(--ease) both;
  border-top: 5px solid var(--orange-500);
}
.hero-lookup h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.hero-lookup p { font-size: 14px; color: var(--muted); }
.hero-lookup form { display: flex; gap: 10px; margin-top: 14px; }
.hero-lookup input {
  flex: 1; min-width: 0; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 14.5px; letter-spacing: .04em; text-transform: uppercase;
}
.hero-lookup input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(34,115,199,.15); }
.hero-lookup .lookup-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; display: flex; gap: 8px; align-items: center; }
@media (max-width: 560px) { .hero-lookup form { flex-direction: column; } }

/* Dải số liệu */
.hero-stats {
  position: relative; z-index: 1; margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-stats .stat { padding: 22px 18px 26px; border-left: 1px solid rgba(255,255,255,.12); }
.hero-stats .stat:first-child { border-left: 0; padding-left: 0; }
.hero-stats .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 38px); color: #fff; }
.hero-stats .num .plus { color: var(--orange-500); }
.hero-stats .lbl { font-size: 13px; color: #93A9BE; margin-top: 2px; }
@media (max-width: 760px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

@keyframes heroFade { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Section chung ---------- */
.section { padding: 84px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }

/* ---------- Lưới dịch vụ ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  position: relative; display: block; background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 30px 26px 26px; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  color: var(--ink);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-100); color: var(--ink); }
.service-card .idx {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--line);
  transition: color .25s;
}
.service-card:hover .idx { color: var(--orange-500); }
.service-card .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-050); color: var(--blue-600); margin-bottom: 18px; font-size: 24px;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.service-card:hover .ico { background: var(--navy-800); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.service-card .more { font-weight: 700; font-size: 13.5px; color: var(--blue-600); font-family: var(--font-display); }
.service-card:hover .more { color: var(--orange-600); }

/* ---------- Vì sao chọn (editorial số thứ tự) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { padding: 34px 32px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); position: relative; }
.why-item:nth-child(2n) { border-right: 0; }
.why-item:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 760px) {
  .why-item { border-right: 0; }
  .why-item:nth-last-child(2) { border-bottom: 1px solid var(--line-soft); }
}
.why-item .no {
  font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--blue-100); margin-bottom: 14px;
  transition: -webkit-text-stroke-color .3s;
}
.why-item:hover .no { -webkit-text-stroke-color: var(--orange-500); }
.why-item h3 { font-size: 17.5px; }
.why-item p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Giới thiệu ngắn (trang chủ) ---------- */
.about-band { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .about-band { grid-template-columns: 1fr; } }
.about-visual { position: relative; }
.about-visual .panel {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg); aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg); display: grid; place-items: center;
}
.about-visual .panel::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.about-visual .panel::after {
  content: ''; position: absolute; top: -20%; right: 12%; width: 70px; height: 150%;
  background: var(--orange-500); opacity: .25; transform: skewX(-18deg);
}
.about-visual .panel img { width: 62%; filter: drop-shadow(0 10px 24px rgba(0,0,0,.3)); position: relative; z-index: 1; background: #fff; padding: 18px 22px; border-radius: 12px; }
.about-visual .float-card {
  position: absolute; bottom: -22px; left: -18px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px 22px; display: flex; align-items: center; gap: 14px;
  border-left: 5px solid var(--orange-500);
}
@media (max-width: 560px) { .about-visual .float-card { left: 8px; } }
.about-visual .float-card .big { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--navy-900); line-height: 1.1; }
.about-visual .float-card .sm { font-size: 12.5px; color: var(--muted); }
.about-copy h2 { font-size: clamp(26px, 3.2vw, 36px); }
.about-copy .lead { font-size: 16.5px; color: var(--muted); }
.about-ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.about-ticks li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
.about-ticks .tick { color: var(--orange-500); font-weight: 800; flex: none; }

/* ---------- Quy trình ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 26px 24px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 900; font-size: 15px; color: #fff;
  background: var(--navy-800); width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 16px; transform: skewX(-8deg);
}
.step:hover::before { background: var(--orange-500); }
.step h3 { font-size: 16.5px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- Tin tức ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); color: var(--ink); display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); color: var(--ink); }
.news-card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--blue-050), var(--blue-100)); position: relative; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .thumb .thumb-mark { position: absolute; inset: 0; display: grid; place-items: center; }
.news-card .thumb .thumb-mark img { width: 46%; height: auto; object-fit: contain; opacity: .5; }
.news-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card time { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.news-card h3 { font-size: 16.5px; margin: 0; }
.news-card:hover h3 { color: var(--blue-600); }
.news-card p { font-size: 13.5px; color: var(--muted); margin: 0; }
.news-empty { text-align: center; color: var(--muted); padding: 30px; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); }

/* ---------- CTA cuối trang ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 15% 120%, rgba(245,121,32,.28), transparent 60%),
    linear-gradient(118deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg); color: #fff; padding: clamp(34px, 5vw, 60px);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::after { content: ''; position: absolute; right: 8%; top: -30%; width: 90px; height: 160%; background: var(--orange-500); opacity: .18; transform: skewX(-18deg); }
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 32px); margin: 0 0 6px; }
.cta-band p { color: #B9CCDE; margin: 0; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- Trang liên hệ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); color: #DCE7F1; border-radius: var(--radius-lg); padding: 34px 32px; position: relative; overflow: hidden; }
.contact-info-card::after { content: ''; position: absolute; right: -30px; bottom: -40%; width: 110px; height: 120%; background: var(--orange-500); opacity: .15; transform: skewX(-18deg); }
.contact-info-card h3 { color: #fff; font-size: 21px; }
.contact-rows { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-rows li { display: flex; gap: 14px; }
.contact-rows .ico { width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(255,255,255,.09); display: grid; place-items: center; color: var(--orange-500); font-size: 17px; }
.contact-rows .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #8FA6BD; }
.contact-rows .val { font-weight: 600; color: #fff; font-size: 15px; }
.contact-form-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 34px 32px; }

/* ---------- Ban lãnh đạo & đội ngũ ----------
   Flex canh giữa: hàng cuối / hàng lẻ (vd 3 thẻ trên lưới 4) tự cân giữa thay vì dồn trái */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.team-card {
  flex: 0 1 262px; max-width: 300px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 26px 22px; text-align: center; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
@media (max-width: 520px) { .team-card { flex-basis: 100%; max-width: 100%; } }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-photo {
  width: 108px; height: 108px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  display: grid; place-items: center; position: relative;
  box-shadow: 0 6px 18px rgba(14, 58, 102, .18); border: 3px solid #fff; outline: 2px solid var(--blue-100);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initial { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: #fff; }
.team-card h3 { font-size: 17px; margin: 0 0 2px; }
.team-role {
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--orange-600);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px;
}
.team-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- Bản đồ nhúng ---------- */
.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
