/* ToJestDom RC274 — final header alignment + exact brand motto + exact house favicon */
html,body{background:#fff!important}
main,.hero,.section,.projectHero{background:#fff!important}

/* Full-width background, but inner header aligns with the same content grid as the hero. */
.topbar .wrap.nav{
  width:100%!important;
  max-width:1500px!important;
  margin:0 auto!important;
  height:80px!important;
  padding:0 18px 10px!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  gap:0!important;
}
.brand.brandLogo{
  flex:0 0 auto!important;
  width:190px!important;
  height:54px!important;
  margin:0!important;
  align-self:flex-end!important;
}
.brand.brandLogo img{
  display:block!important;
  width:190px!important;
  height:auto!important;
  max-height:54px!important;
  object-fit:contain!important;
  object-position:left bottom!important;
}
.topbar .navlinks{
  display:flex!important;
  align-items:flex-end!important;
  gap:24px!important;
  margin:0 0 3px 42px!important;
  font-size:14px!important;
  font-weight:600!important;
  letter-spacing:.005em!important;
  white-space:nowrap!important;
}
.topbar .navlinks a{padding:0 0 3px!important}
.headerMotto{
  display:flex!important;
  align-items:flex-end!important;
  flex:0 0 auto!important;
  margin:0 22px 0 auto!important;
  padding:0 0 0!important;
  opacity:1!important;
}
.headerMotto img{
  display:block!important;
  width:235px!important;
  height:auto!important;
  max-height:48px!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  filter:drop-shadow(0 2px 7px rgba(0,0,0,.12))!important;
}
.topbar .navcta{
  flex:0 0 auto!important;
  margin-left:0!important;
  min-height:44px!important;
  padding:0 22px!important;
  align-self:flex-end!important;
}

/* Keep content start and header logo on the same visual grid. */
.hero .wrap.heroGrid,
.section .wrap,
.projectHero .wrap,
.footer .wrap{
  max-width:1500px!important;
}

@media(max-width:1250px){
  .headerMotto img{width:190px!important}
  .topbar .navlinks{gap:18px!important;margin-left:30px!important;font-size:13px!important}
}
@media(max-width:1080px){
  .headerMotto{display:none!important}
  .topbar .navlinks{margin-left:28px!important}
}
@media(max-width:980px){
  .topbar .wrap.nav{height:72px!important;padding:0 16px 8px!important}
  .brand.brandLogo{width:164px!important;height:48px!important}
  .brand.brandLogo img{width:164px!important;max-height:48px!important}
  .topbar .navlinks{display:none!important}
  .topbar .navcta{margin-left:auto!important;min-height:40px!important;font-size:12px!important;padding:0 16px!important}
}
@media(max-width:650px){
  .topbar .wrap.nav{height:64px!important;padding:0 12px 7px!important}
  .brand.brandLogo{width:146px!important;height:42px!important}
  .brand.brandLogo img{width:146px!important;max-height:42px!important}
}
