
/* =========================================================
   V10 FINAL ALIGNMENT PASS
   ========================================================= */

/* Brand: tagline exact left edge below visible logo */
.brand-lockup{
  align-items:flex-start!important;
  justify-content:center!important;
  gap:2px!important;
}
.brand-lockup img{
  width:198px!important;
  height:auto!important;
  display:block!important;
}
.brand-tagline{
  width:auto!important;
  max-width:198px!important;
  margin-left:2px!important;
  text-align:left!important;
  transform:none!important;
  font-size:8.6px!important;
  line-height:1.1!important;
  letter-spacing:.085em!important;
  white-space:nowrap!important;
}
.footer-brand-lockup{
  align-items:flex-start!important;
  gap:3px!important;
}
.footer-brand-lockup img{
  width:228px!important;
  display:block!important;
}
.footer-tagline{
  width:auto!important;
  max-width:228px!important;
  margin-left:2px!important;
  text-align:left!important;
  transform:none!important;
  font-size:9.2px!important;
  line-height:1.1!important;
  letter-spacing:.095em!important;
}

/* Restore separate clickable page link + submenu arrow consistently */
.navitem > .services-nav-control{
  display:flex!important;
  align-items:center!important;
  height:100%!important;
  gap:2px!important;
}
.navitem > .services-nav-control > a{
  display:flex!important;
  align-items:center!important;
  height:100%!important;
  padding:0!important;
}
.navitem > .services-nav-control > button{
  flex:0 0 27px!important;
}

/* Header exact vertical centering */
.hrow{align-items:center!important}
.logo.brand-lockup{margin-top:1px!important}
.mtoggle{align-self:center!important}

/* Main section alignment */
.hero-grid,.mission-grid,.home-premier-grid,.service-long-intro,.contact-location{
  align-items:center!important;
}
.service-long-intro,.contact-location{
  align-items:start!important;
}
.section-head > *{min-width:0!important}
.section-copy{margin-left:auto!important}

/* Service master cards */
.deep-service,.feature-card,.outcome-card,.usecase-card,.quality-card,.component-card,.answer-box,
.outsource-card,.principle-card,.contact-direct-card,.related-service,.about-service-link{
  height:100%!important;
}
.deep-service-head,.deep-service-body{box-sizing:border-box!important}
.service-meta,.service-sidebox,.service-fact-stack{width:100%!important}

/* Tables: no overlapping text */
.service-matrix th,.service-matrix td{
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.service-matrix thead th:not(:first-child){min-width:138px!important}
.table-wrap table{min-width:1050px!important}

/* Before/after: consistent frame sizing */
.compare-shell,.comparebox,.compare-block{width:100%!important}
.compare{width:100%!important}
.ba-v7-card .compare,.ba-case .compare{height:320px!important}
.home-service-ba .compare{min-height:420px!important}
.mission-ba .compare{height:560px!important}

/* Footer exact column rhythm */
.footer-top{
  grid-template-columns:minmax(300px,1.35fr) repeat(4,minmax(138px,.78fr))!important;
}
.footer-col{padding-top:3px!important}
.footer-links a{display:block!important}
.subscribe{align-items:center!important}
.footer-bottom>div:first-child{min-width:0!important}

/* Contact / legal */
.form-card,.contact-support-card,.info-panel,.geo-pricing{width:100%!important}
.prose table{display:block!important;max-width:100%!important;overflow-x:auto!important}

/* Demo image behavior */
img[data-local-fallback]{
  background:#eef0f5;
}

/* Desktop widths */
@media(min-width:1321px){
  .nav{display:flex!important}
  .mtoggle{display:none!important}
}

/* Tablet */
@media(max-width:1320px){
  .footer-top{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .footer-top>div:first-child{grid-column:1/-1!important}
}
@media(max-width:1050px){
  .section-copy{margin-left:0!important}
  .mission-grid,.home-premier-grid,.hero-grid{align-items:start!important}
  .mission-ba .compare{height:470px!important}
  .home-service-ba .compare{min-height:400px!important}
}
/* Mobile */
@media(max-width:760px){
  .brand-lockup img{width:170px!important}
  .brand-tagline{max-width:170px!important;font-size:7.4px!important;margin-left:1px!important}
  .footer-brand-lockup img{width:205px!important}
  .footer-tagline{max-width:205px!important;margin-left:1px!important}
  .footer-top{grid-template-columns:1fr!important}
  .footer-top>div:first-child{grid-column:auto!important}
  .mission-ba .compare,.home-service-ba .compare,.ba-v7-card .compare,.ba-case .compare{height:350px!important;min-height:350px!important}
  .section-copy{margin-left:0!important}
}
