/* Điện Nước Thợ Hiền (diennuoc) — trang chủ theo mockup (đợt 9). Vàng #ffc104 + xám than #2b2b2b. Tiền tố th- */
:root { --c1: #ffc104; --c1d: #f0b000; --c2: #2b2b2b; --ink: #1d1d1d; --mu: #666; --ft: #2b2b2b; --line: #e4e4e4; --hf: "Roboto Condensed", Roboto, sans-serif; --bf: Roboto, sans-serif; --r: 6px; --rb: 4px; }
.th-tb { display: inline-flex; align-items: center; gap: 8px; color: #e6e6e6; font-size: 16px; } .th-tb svg { width: 19px; height: 19px; }
.th-tb-hot { display: inline-flex; align-items: center; gap: 9px; color: #ffc104 !important; font-weight: 700; font-size: 20px; } .th-tb-hot svg { width: 22px; height: 22px; }
#header #logo a { display: block; width: 250px; height: 74px; background: url("icons/logo.png") left center / contain no-repeat; font-size: 0 !important; color: transparent !important; }
#header .header-nav-main > li { margin: 0 15px; }
#header .header-nav-main > li > a { font-size: 18px; font-weight: 500; color: #222; padding: 0; }
#header .header-nav-main > li > a:hover { color: #c99600; }
#header .header-button-1 { margin-left: 22px !important; }
#header .header-button-1 .button { background: var(--c1) !important; border-color: var(--c1) !important; color: #1d1d1d !important; min-height: 56px; line-height: 56px; padding: 0 30px; border-radius: 4px !important; font-size: 19px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.th-sec h2 { font-size: 53px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; margin: 0; color: #1d1d1d; }
.th-sec .b9-hd p { font-size: 19px; color: #707070; }
a.th-all { color: #1d1d1d !important; font-weight: 500; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--c1); padding-bottom: 4px; white-space: nowrap; }
a.th-all .b9-ic { color: #f0b000; width: 20px; height: 20px; }
/* hero */
.th-hero { min-height: 610px; padding: 36px 0 !important; }
.th-hero .section-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.62) 0%, rgba(20,20,20,.35) 34%, rgba(20,20,20,0) 55%); }
.th-h1 { color: #fff !important; font-size: 74px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; margin: 0 0 26px; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.th-hchk { list-style: none; margin: 0; padding: 0; }
.th-hchk li { display: flex; align-items: center; gap: 18px; color: #fff; font-size: 28px; font-weight: 500; margin: 0 0 14px; font-family: var(--hf); text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.th-hchk .b9-ic { width: 40px; height: 40px; color: var(--c1); }
.th-book { background: #fff; border-radius: 8px; padding: 30px 32px; box-shadow: 0 16px 40px rgba(0,0,0,.18); margin-left: auto; max-width: 430px; }
.th-book-t { font-family: var(--hf); font-size: 32px; font-weight: 700; color: #1d1d1d; margin-bottom: 18px; }
.th-book > label { font-size: 17px; color: #333 !important; font-weight: 500; margin: 0 0 9px; }
.th-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.th-seg label { margin: 0; }
.th-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.th-seg span { display: flex; align-items: center; justify-content: center; height: 48px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; color: #333; cursor: pointer; background: #fafafa; text-align: center; line-height: 1.2; }
.th-seg input:checked + span { background: var(--c1); border-color: var(--c1); font-weight: 600; color: #1d1d1d; }
.th-ip { position: relative; margin-bottom: 20px; }
.th-ip .b9-ic { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; color: #555; }
.th-ip input, .th-ip select { padding-left: 42px !important; height: 50px !important; }
.th-book-b { width: 100%; height: 56px; background: var(--c1); border: 0; border-radius: 4px; font-weight: 700; font-size: 18px; color: #1d1d1d; margin: 4px 0 0; cursor: pointer; text-transform: none; }
/* cam kết */
.th-com-sec { padding: 0 !important; }
.th-com { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 30px 0; }
.th-com > div { display: flex; align-items: center; gap: 16px; justify-content: center; }
.th-com img { width: 70px; height: 70px; }
.th-com span { color: #fff; font-size: 22px; font-weight: 500; }
/* dịch vụ */
.th-svc-sec { padding: 60px 0 50px !important; }
.th-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.th-svc a { display: flex; flex-direction: column; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 22px rgba(0,0,0,.08); color: inherit; padding-bottom: 22px; }
.th-svc img { width: 100%; aspect-ratio: 415 / 232; object-fit: cover; display: block; margin-bottom: 20px; }
.th-svc b { font-family: var(--hf); font-size: 25px; font-weight: 700; color: #1d1d1d; padding: 0 26px; }
.th-svc span { font-size: 17.5px; color: #707070; padding: 8px 26px 14px; }
.th-svc em { font-style: normal; margin: 0 26px; align-self: flex-start; font-size: 15px; color: #1d1d1d; border-bottom: 2px solid var(--c1); padding-bottom: 3px; display: inline-flex; gap: 8px; align-items: center; }
.th-svc em .b9-ic { color: #f0b000; width: 18px; height: 18px; }
/* SP */
.th-prod-sec { padding: 50px 0 50px !important; }
.th-prod { --gap: 18px; --pc-ar: 1 / 1; --pc-pad: 16px; }
.th-prod .b9-pc { border: 0; border-radius: 6px; text-align: center; }
.th-prod .b9-pc-t { font-size: 19px; font-weight: 500; }
.th-prod .b9-pc-p { color: #1d1d1d; font-size: 25px; font-weight: 700; }
.th-prod .b9-pc-btn { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.th-prod .b9-pc-btn a { min-height: 48px; font-size: 16.5px; }
.th-prod .b9-pc-btn a.b9-btn { background: #fff; color: #1d1d1d !important; border: 1px solid #c9c9c9; }
.th-prod .b9-pc-btn a.b9-btn-o { background: var(--c1); color: #1d1d1d !important; border-color: var(--c1); }
/* dải vàng */
.th-band-sec { padding: 0 !important; }
.th-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px 0; }
.th-band-s { font-size: 22px; font-weight: 500; color: #1d1d1d; }
.th-band-t { font-family: var(--hf); font-size: 54px; font-weight: 700; color: #1d1d1d; line-height: 1.15; }
a.th-band-b { background: #2b2b2b; color: #fff !important; min-height: 70px; padding: 0 62px; display: inline-flex; align-items: center; border-radius: 4px; font-size: 19px; font-weight: 700; white-space: nowrap; }
/* dự án */
.th-pj-sec { padding: 50px 0 48px !important; }
.th-pj-hd { display: flex; align-items: center; gap: 52px; margin-bottom: 30px; } .th-pj-hd h2 { flex: none; width: auto; }
.th-pj-hd .th-all { margin-left: auto; }
.th-tabs { display: flex; gap: 0; border-bottom: 1px solid #e2e2e2; }
.th-tabs button { white-space: nowrap; margin: 0; background: none; border: 0; border-bottom: 3px solid transparent; color: #777; font-size: 17px; font-weight: 500; text-transform: none; letter-spacing: 0; padding: 8px 30px; min-height: 0; }
.th-tabs button.on { border-color: var(--c1); color: #1d1d1d; }
.th-pj { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.th-pj a { color: #1d1d1d; }
.th-pj img { width: 100%; aspect-ratio: 312 / 266; object-fit: cover; display: block; border-radius: 4px; }
.th-pj b { display: block; font-size: 21px; font-weight: 500; margin-top: 14px; }
/* tin */
.th-news-sec { padding: 46px 0 48px !important; }
.th-news { --gap: 28px; --po-ar: 415 / 208; }
.th-news .b9-po { border: 0; border-radius: 6px; }
.th-news .b9-po-t { font-size: 24px; font-family: var(--hf) !important; }
.th-news .b9-po-e { font-size: 15.5px; }
.th-news .b9-more { color: #1d1d1d !important; border-bottom: 2px solid var(--c1); align-self: flex-start; padding-bottom: 3px; }
.th-news .b9-more .b9-ic { color: #f0b000; }
/* CTA */
.th-cta-sec { padding: 0 !important; border-bottom: 4px solid var(--c1); }
.th-cta { display: flex; align-items: center; justify-content: center; gap: 50px; padding: 36px 0; }
.th-cta-t { color: #fff; font-family: var(--hf); font-size: 40px; font-weight: 700; }
a.th-cta-b { background: var(--c1); color: #1d1d1d !important; font-weight: 700; font-size: 19px; min-height: 64px; padding: 0 40px; display: inline-flex; align-items: center; border-radius: 4px; white-space: nowrap; }
#footer .b9-ft { --ft: #2b2b2b; --ftlogo: 62px; }
.b9-ft-soc .b9-ic { color: #fff; }
@media (max-width: 849px) {
  #header #logo a { width: 160px; height: 46px; background-position: center; }
  .th-sec h2 { font-size: 29px; }
  .th-hero { min-height: 0; padding: 262px 0 24px !important; background-color: #2b2b2b !important; }
  .th-hero .section-bg { bottom: auto; height: 250px; }
  .th-hero .section-bg .bg, .th-hero .section-bg img { object-position: 46% 50% !important; }
  .th-hero .section-bg::after { display: none; }
  .th-h1 { font-size: 36px; } .th-h1 br { display: none; }
  .th-hchk li { font-size: 18px; } .th-hchk .b9-ic { width: 26px; height: 26px; }
  .th-book { padding: 22px 18px; max-width: none; } .th-seg span { font-size: 13px; }
  .th-com { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; padding: 24px 0; } .th-com img { width: 40px; height: 40px; } .th-com span { font-size: 15px; } .th-com > div { justify-content: flex-start; gap: 10px; }
  .th-svc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .th-prod { --nm: 2; }
  .th-band { flex-direction: column; align-items: flex-start; padding: 26px 0; } .th-band-t { font-size: 28px; } a.th-band-b { min-height: 52px; padding: 0 30px; }
  .th-pj-hd { flex-wrap: wrap; gap: 14px; } .th-tabs button { padding: 8px 16px; }
  .th-pj { grid-template-columns: repeat(2, minmax(0, 1fr)); } .th-pj b { font-size: 15px; }
  .th-news { --nm: 1; }
  .th-cta { flex-direction: column; gap: 16px; text-align: center; } .th-cta-t { font-size: 24px; }
}
/* _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; }
@media (min-width: 850px) { .b9-ft li { font-size: 18px; } .b9-ft-h { font-size: 20px; } .b9-ft-desc { font-size: 17px; max-width: 330px; } .b9-ft-soc .b9-ic { width: 34px; height: 34px; } .b9-ft-in { padding-top: 54px; } .b9-ft-copy { font-size: 15px; } }
#footer .b9-ft { --ftlogo: 74px; border-top: 4px solid var(--c1); }
