/* Cơ Khí Phú Vĩnh (giacongcokhi) — trang chủ theo mockup (đợt 9). Xanh biển #006398 + cam #f58634. Tiền tố pv- */
:root { --c1: #f58634; --c1d: #e0721f; --c2: #006398; --ink: #11283a; --mu: #5a6672; --ft: #0a5f92; --line: #e2e8ee; --hf: "Be Vietnam Pro", Inter, sans-serif; --bf: Inter, sans-serif; --r: 4px; --rb: 4px; }
.pv-tb { color: #fff; font-size: 14px; } .pv-tb a { color: #fff !important; font-weight: 600; }
#header #logo a { display: block; width: 210px; height: 62px; background: url("icons/logo.png") left center / contain no-repeat; font-size: 0 !important; color: transparent !important; }
#header .header-nav-main > li { margin: 0 9px; } #header .header-main .flex-right > ul { flex-wrap: nowrap; }
#header .header-nav-main > li > a { font-size: 15px; font-weight: 500; color: #11283a !important; padding: 0; }
#header .header-nav-main > li > a:hover { color: var(--c2) !important; }
#header .header-button-1 .button { background: var(--c1) !important; border-color: var(--c1) !important; color: #fff !important; min-height: 48px; line-height: 48px; padding: 0 24px; border-radius: 4px !important; font-size: 15.5px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.pv-sec h2, .pv-h2 { font-size: 36px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; margin: 0; color: #11283a; }
.pv-sec .b9-all { color: var(--c2) !important; }
/* hero */
.pv-hero-sec { padding: 0 !important; }
.pv-hero-row > .col { padding: 0 !important; }
.pv-hero { position: relative; display: grid; grid-template-columns: 52.5% 47.5%; height: 520px; overflow: hidden; }
.pv-hero img { width: 100%; height: 520px; object-fit: cover; display: block; }
.pv-hbox { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(0, 99, 152, .93); color: #fff; padding: 30px 36px 34px; text-align: center; width: 600px; max-width: 92%; }
.pv-hbox h1 { color: #fff !important; font-size: 39px; line-height: 1.22; font-weight: 700; margin: 0 0 12px; }
.pv-hs { font-size: 19px; margin-bottom: 26px; opacity: .95; }
.pv-hb { display: flex; justify-content: center; gap: 22px; }
.pv-hb a { min-width: 172px; min-height: 52px; font-size: 16px; }
/* cam kết */
.pv-com-sec { padding: 26px 0 !important; border-bottom: 1px solid #edf0f3; }
.pv-com { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pv-com > div { display: flex; align-items: center; justify-content: center; gap: 16px; border-left: 1px solid #e2e8ee; }
.pv-com > div:first-child { border-left: 0; }
.pv-com img { width: 66px; height: 66px; }
.pv-com span { font-size: 18px; font-weight: 500; color: #11283a; }
/* danh mục */
.pv-cat-sec { padding: 40px 0 40px !important; }
.pv-cat { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.pv-cat a { display: block; overflow: hidden; border-radius: 2px; }
.pv-cat img { width: 100%; aspect-ratio: 210 / 290; object-fit: cover; display: block; transition: transform .4s; }
.pv-cat a:hover img { transform: scale(1.04); }
.pv-cat b { display: flex; align-items: center; justify-content: space-between; background: var(--c2); color: #fff; font-size: 15px; font-weight: 600; padding: 16px 16px; }
.pv-cat b .b9-ic { width: 16px; height: 16px; }
/* mẫu thi công */
.pv-prod-sec { padding: 40px 0 40px !important; }
.pv-tabs { display: flex; gap: 0; border-bottom: 1px solid #dfe5eb; margin: -8px 0 24px; }
.pv-tabs button { margin: 0 0 -1px; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 24px; font-size: 16px; color: #3d4954; text-transform: none; letter-spacing: 0; font-weight: 500; min-height: 0; }
.pv-tabs button.on { color: var(--c2); border-color: var(--c1); font-weight: 700; }
.pv-prod { --gap: 22px; --pc-ar: 300 / 248; --pc-pad: 0px; }
.pv-prod .b9-pc { border: 0; border-radius: 2px; }
.pv-prod .b9-pc-img img { object-fit: cover; }
.pv-prod .b9-pc-t { font-size: 18.5px; font-weight: 600; }
.pv-prod .b9-pc-p, .pv-prod .b9-pc-ct { color: var(--c1); font-size: 16px; font-weight: 600; }
.pv-prod .b9-pc-btn a { min-height: 40px; font-size: 14px; }
.pv-prod .b9-pc-btn a.b9-btn { background: var(--c2); border-color: var(--c2); }
.pv-prod .b9-pc-btn a.b9-btn-o { color: var(--c2) !important; border-color: var(--c2); }
.pv-prod .b9-pc-btn a.b9-btn-o:hover { background: var(--c2); color: #fff !important; }
/* quy trình */
.pv-step-sec { padding: 40px 0 42px !important; }
.pv-w { color: #fff !important; font-size: 36px; margin-bottom: 26px !important; }
.pv-step { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pv-step > div { display: flex; gap: 20px; position: relative; padding-right: 24px; }
.pv-step em { font-style: normal; font-family: var(--hf); font-size: 64px; font-weight: 800; color: var(--c1); line-height: .9; }
.pv-step > div:not(:last-child)::after { content: ""; position: absolute; right: 2px; top: 24px; width: 34px; height: 2px; background: #fff; opacity: .9; }
.pv-step b { display: block; color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.pv-step span { display: block; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.5; }
/* xưởng */
.pv-work-sec { padding: 46px 0 46px !important; }
.pv-wk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pv-wk img { width: 100%; aspect-ratio: 330 / 230; object-fit: cover; display: block; }
.pv-work-r .col-inner { padding-left: 46px; }
.pv-sub { color: var(--mu); font-size: 18px; margin: 12px 0 26px; }
.pv-feat { display: flex; flex-direction: column; gap: 22px; }
.pv-feat > div { display: flex; gap: 20px; align-items: flex-start; }
.pv-feat img { width: 60px; height: 60px; flex: none; }
.pv-feat b { display: block; color: var(--c2); font-size: 19px; margin-bottom: 4px; }
.pv-feat span { display: block; color: var(--mu); font-size: 16px; }
/* báo giá */
.pv-quote-sec { padding: 0 !important; }
.pv-quote { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 32px 0; }
.pv-quote h2 { color: #fff !important; font-size: 50px; }
.pv-quote p { color: #fff; font-size: 18px; margin: 4px 0 0; }
.pv-qf { display: flex; gap: 14px; flex: none; width: 760px; flex-wrap: wrap; }
.pv-qf input, .pv-qf select { flex: 1; height: 60px !important; border: 0; border-radius: 4px; font-size: 16px; }
.pv-qf button { height: 60px; padding: 0 44px; background: var(--c2); color: #fff; border: 0; border-radius: 4px; font-weight: 700; font-size: 17px; margin: 0; text-transform: none; }
.pv-qf .b9-form-msg { width: 100%; color: #fff; }
/* tin */
.pv-news-sec { padding: 40px 0 46px !important; }
.pv-news { --gap: 22px; --po-ar: 420 / 214; }
.pv-news .b9-po { border-radius: 2px; }
.pv-news .b9-po-t { font-size: 19px; }
.pv-news .b9-more { color: var(--c2) !important; }
#footer .b9-ft { --ft: #0a5f92; --ftlogo: 66px; }
.b9-ft-links { columns: 2; column-gap: 30px; }
.b9-ft-soc .b9-ic { --b9-ib: #0a5f92; }
@media (min-width: 850px) and (max-width: 1299px) { #header .header-nav-main > li { margin: 0 5px; } #header .header-nav-main > li > a { font-size: 13px !important; } .pv-qf { width: 520px; } .pv-step em { font-size: 46px; } .pv-step > div::after { display: none; } .pv-cat b { font-size: 13px; padding: 12px; } }
@media (max-width: 849px) {
  #header #logo a { width: 160px; height: 48px; background-position: center; }
  .pv-sec h2, .pv-h2, .pv-w { font-size: 27px; }
  .pv-hero { grid-template-columns: minmax(0, 1fr); height: auto; } .pv-hero img { height: 220px; } .pv-h2i { display: none !important; }
  .pv-hbox { position: static; transform: none; width: 100%; max-width: none; padding: 24px 16px; } .pv-hbox h1 { font-size: 28px; } .pv-hb a { min-width: 0; flex: 1; }
  .pv-com { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; } .pv-com > div:nth-child(3) { border-left: 0; } .pv-com img { width: 38px; height: 38px; } .pv-com span { font-size: 14px; } .pv-com > div { flex-direction: column; text-align: center; gap: 8px; }
  .pv-cat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pv-cat img { aspect-ratio: 3 / 4; }
  .pv-tabs { overflow-x: auto; } .pv-tabs button { padding: 10px 14px; white-space: nowrap; }
  .pv-prod { --nm: 2; } .pv-prod .b9-pc-btn { grid-template-columns: minmax(0, 1fr); }
  .pv-step { grid-template-columns: minmax(0, 1fr); gap: 18px; } .pv-step > div::after { display: none; } .pv-step em { font-size: 42px; }
  .pv-work-r .col-inner { padding-left: 0; padding-top: 18px; }
  .pv-quote { flex-direction: column; align-items: flex-start; } .pv-quote h2 { font-size: 30px; } .pv-qf { width: 100%; } .pv-qf input, .pv-qf select, .pv-qf button { flex: 1 1 100%; }
  .pv-news { --nm: 1; }
}
/* _midwidth: header Flatsome ở 850-1399px (laptop nhỏ/tablet ngang) — menu dựng theo mockup 1440 tràn phải; dùng chung mọi site */
@media (min-width: 850px) and (max-width: 1399px) {
  #header .header-nav-main > li, #header .header-bottom-nav > li { margin-left: 6px !important; margin-right: 6px !important; }
  #header .header-nav-main > li > a, #header .header-bottom-nav > li > a { font-size: 14px !important; }
  #header .header-search-form { max-width: 300px !important; width: 300px !important; margin-left: 20px !important; }
}
@media (min-width: 850px) and (max-width: 1199px) {
  #logo { width: auto !important; max-width: 210px !important; } #logo a { font-size: 21px !important; }
  #header .header-main .flex-right .header-button-1, #header .header-main .flex-right li.html, #header .header-search-form, #top-bar .flex-right { display: none !important; }
  #header .header-nav-main > li, #header .header-bottom-nav > li { margin-left: 3px !important; margin-right: 3px !important; }
  #header .header-nav-main > li > a, #header .header-bottom-nav > li > a { font-size: 13px !important; }
  #header .flex-col { min-width: 0; } #header .header-inner, #header .header-bottom .container { overflow: hidden; }
}
.col-inner a[href^="mailto"], .col-inner a[href^="tel"] { overflow-wrap: anywhere; }
