/* Phương Hằng BĐS V5.1 — logo/header + final hero banner */

/* Header logo: use one clean horizontal artwork so Vietnamese letters can never split */
body.ph39-site .ph39-header,
body.ph39-catalog .ph39-header,
body.ph39-detail .ph39-header{
  min-height:96px!important;
  height:96px!important;
  background:#fff!important;
  border-bottom:1px solid rgba(201,162,39,.28)!important;
  box-shadow:0 8px 28px rgba(10,39,76,.08)!important;
}
body.ph39-site .ph39-nav,
body.ph39-catalog .ph39-nav,
body.ph39-detail .ph39-nav{
  width:min(1280px,calc(100% - 40px))!important;
  min-height:96px!important;
  height:96px!important;
  grid-template-columns:300px minmax(0,1fr) auto auto!important;
  gap:22px!important;
  align-items:center!important;
}
body.ph39-site .ph51-brand,
body.ph39-catalog .ph51-brand,
body.ph39-detail .ph51-brand{
  width:286px!important;
  min-width:286px!important;
  height:78px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding:0!important;
  margin:0!important;
  overflow:visible!important;
}
body.ph39-site .ph51-brand img,
body.ph39-catalog .ph51-brand img,
body.ph39-detail .ph51-brand img{
  display:block!important;
  width:280px!important;
  max-width:280px!important;
  height:auto!important;
  max-height:74px!important;
  object-fit:contain!important;
  object-position:left center!important;
  filter:drop-shadow(0 5px 10px rgba(155,105,9,.14))!important;
}
body.ph39-site .ph39-menu,
body.ph39-catalog .ph39-menu,
body.ph39-detail .ph39-menu{
  gap:24px!important;
  justify-content:center!important;
}
body.ph39-site .ph39-menu a,
body.ph39-catalog .ph39-menu a,
body.ph39-detail .ph39-menu a{
  color:#102947!important;
  font-size:15px!important;
  line-height:1.2!important;
  font-weight:800!important;
  letter-spacing:0!important;
  word-spacing:0!important;
  white-space:nowrap!important;
  text-shadow:none!important;
}
body.ph39-site .ph39-menu a.active,
body.ph39-catalog .ph39-menu a.active,
body.ph39-detail .ph39-menu a.active{color:#b9820c!important}

/* Final homepage banner supplied by user. The admin banner layer remains available above it. */
body.ph39-site .ph39-hero{
  position:relative!important;
  min-height:690px!important;
  padding:58px 0 34px!important;
  background:
    linear-gradient(90deg,rgba(3,28,66,.28) 0%,rgba(3,34,76,.16) 40%,rgba(3,34,76,.04) 66%,rgba(2,22,52,.03) 100%),
    url('/assets/v51/home-hero-final.jpg') center center/cover no-repeat!important;
  border-bottom:1px solid #c9a227!important;
  box-shadow:inset 0 -42px 82px rgba(1,24,56,.20)!important;
  overflow:hidden!important;
}
body.ph39-site .ph39-hero:before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  background:linear-gradient(90deg,rgba(1,22,55,.43) 0%,rgba(2,29,67,.20) 37%,rgba(2,29,67,.02) 68%,rgba(0,0,0,0) 100%)!important;
  pointer-events:none!important;
}
body.ph39-site .ph39-admin-hero-media{
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  background-position:center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
}
body.ph39-site .ph39-admin-hero-media:after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:linear-gradient(90deg,rgba(1,22,55,.52),rgba(2,29,67,.12) 44%,rgba(0,0,0,0) 72%)!important;
  pointer-events:none!important;
}
body.ph39-site .ph39-admin-hero-media video{width:100%!important;height:100%!important;object-fit:cover!important;filter:brightness(.84) saturate(1.04)!important}
body.ph39-site .ph39-hero-center,
body.ph39-site .ph39-services,
body.ph39-site .ph39-search{position:relative!important;z-index:2!important}

/* Larger hero typography on the new banner */
body.ph39-site .ph39-hero-center{
  width:min(1220px,calc(100% - 48px))!important;
  padding-top:20px!important;
  margin:0 auto!important;
}
body.ph39-site .ph39-kicker{
  margin:0 0 8px!important;
  color:#ffd348!important;
  font-size:20px!important;
  line-height:1.2!important;
  font-weight:900!important;
  letter-spacing:.4px!important;
  text-shadow:0 3px 16px rgba(0,0,0,.28)!important;
}
body.ph39-site .ph46-home-hero-title{
  display:flex!important;
  align-items:baseline!important;
  gap:14px!important;
  max-width:900px!important;
  margin:0!important;
  line-height:.96!important;
}
body.ph39-site .ph46-home-hero-title span,
body.ph39-site .ph46-home-hero-title strong{
  font-family:"Segoe UI",Tahoma,Arial,sans-serif!important;
  font-size:64px!important;
  line-height:.98!important;
  font-weight:950!important;
  letter-spacing:-1.2px!important;
  word-spacing:0!important;
  white-space:nowrap!important;
}
body.ph39-site .ph46-home-hero-title span{
  color:#e7ad23!important;
  background:linear-gradient(180deg,#fff0a6 0%,#f5c348 20%,#d79a10 52%,#9f6600 80%,#e4ae26 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  filter:drop-shadow(0 2px 0 #714400) drop-shadow(0 7px 12px rgba(0,0,0,.34))!important;
}
body.ph39-site .ph46-home-hero-title strong{
  color:#fff!important;
  text-shadow:0 4px 14px rgba(0,0,0,.30)!important;
}
body.ph39-site .ph39-subtitle{
  margin-top:12px!important;
  font-size:19px!important;
  line-height:1.45!important;
  color:#fff!important;
  font-weight:700!important;
  text-shadow:0 3px 14px rgba(0,0,0,.30)!important;
}
body.ph39-site .ph46-hero-metrics{margin-top:22px!important}
body.ph39-site .ph46-hero-metrics b{font-size:19px!important;color:#fff!important}
body.ph39-site .ph46-hero-metrics span{font-size:13px!important;color:#f1f6ff!important}

@media(max-width:1180px){
  body.ph39-site .ph39-nav,body.ph39-catalog .ph39-nav,body.ph39-detail .ph39-nav{
    grid-template-columns:240px minmax(0,1fr) auto auto!important;gap:14px!important
  }
  body.ph39-site .ph51-brand,body.ph39-catalog .ph51-brand,body.ph39-detail .ph51-brand{width:232px!important;min-width:232px!important}
  body.ph39-site .ph51-brand img,body.ph39-catalog .ph51-brand img,body.ph39-detail .ph51-brand img{width:228px!important;max-width:228px!important}
  body.ph39-site .ph39-menu,body.ph39-catalog .ph39-menu,body.ph39-detail .ph39-menu{gap:15px!important}
  body.ph39-site .ph39-menu a,body.ph39-catalog .ph39-menu a,body.ph39-detail .ph39-menu a{font-size:13px!important}
  body.ph39-site .ph46-home-hero-title span,body.ph39-site .ph46-home-hero-title strong{font-size:54px!important}
}
@media(max-width:920px){
  body.ph39-site .ph39-header,body.ph39-catalog .ph39-header,body.ph39-detail .ph39-header{height:82px!important;min-height:82px!important}
  body.ph39-site .ph39-nav,body.ph39-catalog .ph39-nav,body.ph39-detail .ph39-nav{height:82px!important;min-height:82px!important;grid-template-columns:1fr auto auto!important}
  body.ph39-site .ph51-brand,body.ph39-catalog .ph51-brand,body.ph39-detail .ph51-brand{height:68px!important;width:230px!important;min-width:0!important}
  body.ph39-site .ph51-brand img,body.ph39-catalog .ph51-brand img,body.ph39-detail .ph51-brand img{width:220px!important;max-width:220px!important;max-height:62px!important}
  body.ph39-site .ph39-menu,body.ph39-catalog .ph39-menu,body.ph39-detail .ph39-menu{display:none!important}
  body.ph39-site.ph39-menu-open .ph39-menu,body.ph39-catalog.ph39-menu-open .ph39-menu,body.ph39-detail.ph39-menu-open .ph39-menu{display:flex!important;top:82px!important}
  body.ph39-site .ph39-hero{min-height:760px!important;background-position:58% center!important}
  body.ph39-site .ph46-home-hero-title{display:block!important}
  body.ph39-site .ph46-home-hero-title span,body.ph39-site .ph46-home-hero-title strong{display:block!important;font-size:48px!important;white-space:normal!important}
}
@media(max-width:600px){
  body.ph39-site .ph51-brand,body.ph39-catalog .ph51-brand,body.ph39-detail .ph51-brand{width:170px!important;height:62px!important}
  body.ph39-site .ph51-brand img,body.ph39-catalog .ph51-brand img,body.ph39-detail .ph51-brand img{width:164px!important;max-width:164px!important;max-height:54px!important}
  body.ph39-site .ph39-hero{min-height:850px!important;background-position:67% center!important;padding-top:42px!important}
  body.ph39-site .ph39-hero:before{background:linear-gradient(90deg,rgba(1,22,55,.76),rgba(2,29,67,.52) 58%,rgba(0,0,0,.08))!important}
  body.ph39-site .ph39-kicker{font-size:16px!important}
  body.ph39-site .ph46-home-hero-title span,body.ph39-site .ph46-home-hero-title strong{font-size:38px!important}
  body.ph39-site .ph39-subtitle{font-size:16px!important}
}
