/* Patch 97 - Google-like gateway + final UI polish */
:root{
  --a3p97-navy:#082a63;
  --a3p97-navy2:#103d83;
  --a3p97-blue:#1767e8;
  --a3p97-sky:#eaf5ff;
  --a3p97-ice:#f7fbff;
  --a3p97-line:#d8e6fb;
  --a3p97-text:#10284f;
  --a3p97-muted:#5d6f89;
  --a3p97-shadow:0 14px 36px rgba(8,42,99,.08);
  --a3p97-soft-shadow:0 8px 22px rgba(8,42,99,.06);
}

/* ===== Root gateway like Google: centered, no overlap, no oversized whitespace ===== */
body.a3-gw90{
  background:radial-gradient(circle at 82% 10%,rgba(23,103,232,.08),transparent 28%),linear-gradient(180deg,#f8fbff 0%,#eef6ff 100%)!important;
  min-height:100vh!important;
}
body.a3-gw90 .gw90-wrap{
  width:min(1120px,calc(100% - 28px))!important;
  max-width:1120px!important;
  padding:22px 0 34px!important;
  margin:0 auto!important;
}
body.a3-gw90 .gw90-hero{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  text-align:center!important;
  min-height:auto!important;
  padding:8px 0 0!important;
  gap:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.a3-gw90 .gw90-logo{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0 0 8px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  filter:none!important;
}
body.a3-gw90 .gw90-logo img{
  width:min(245px,45vw)!important;
  max-width:245px!important;
  height:auto!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  filter:drop-shadow(0 8px 18px rgba(8,42,99,.08))!important;
}
body.a3-gw90 .gw90-hero h1{
  width:100%!important;
  max-width:900px!important;
  margin:0 auto 8px!important;
  color:var(--a3p97-navy)!important;
  font-size:clamp(34px,4.4vw,58px)!important;
  line-height:1.18!important;
  letter-spacing:-1px!important;
  font-weight:1000!important;
}
body.a3-gw90 .gw90-hero p{
  width:100%!important;
  max-width:760px!important;
  margin:0 auto 18px!important;
  color:var(--a3p97-muted)!important;
  font-size:15px!important;
  line-height:1.9!important;
  font-weight:750!important;
}
body.a3-gw90 .gw91-market,
body.a3-gw90 .gw91-search-only{
  width:min(760px,100%)!important;
  max-width:760px!important;
  margin:0 auto 10px!important;
  background:rgba(255,255,255,.98)!important;
  border:1px solid var(--a3p97-line)!important;
  border-radius:30px!important;
  padding:7px!important;
  box-shadow:0 16px 38px rgba(8,42,99,.09)!important;
}
body.a3-gw90 .gw91-market{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 154px!important;display:grid!important;gap:7px!important}
body.a3-gw90 .gw91-search-only{grid-template-columns:minmax(0,1fr) 134px!important;display:grid!important;gap:7px!important;margin-top:4px!important}
body.a3-gw90 .gw91-market select,
body.a3-gw90 .gw91-market button,
body.a3-gw90 .gw90-search input,
body.a3-gw90 .gw90-search button,
body.a3-gw90 .a3p96-combo-btn{
  min-height:48px!important;
  border-radius:22px!important;
  font-size:14px!important;
}
body.a3-gw90 .gw91-market select,
body.a3-gw90 .gw90-search input,
body.a3-gw90 .a3p96-combo-btn{
  background:#f4f8ff!important;
  color:var(--a3p97-text)!important;
  border:1px solid transparent!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7)!important;
}
body.a3-gw90 .gw91-market button,
body.a3-gw90 .gw90-search button{
  background:linear-gradient(135deg,var(--a3p97-blue),var(--a3p97-navy2))!important;
  color:#fff!important;
  font-weight:950!important;
  border:0!important;
  box-shadow:0 10px 24px rgba(23,103,232,.22)!important;
}
body.a3-gw90 .gw91-tabs{
  width:100%!important;
  justify-content:center!important;
  margin:8px auto 0!important;
  gap:8px!important;
}
body.a3-gw90 .gw90-tabs button{
  min-height:38px!important;
  padding:8px 14px!important;
  font-size:13px!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--a3p97-navy)!important;
  border:1px solid var(--a3p97-line)!important;
  box-shadow:var(--a3p97-soft-shadow)!important;
}
body.a3-gw90 .gw90-feature-grid{
  margin:44px auto 0!important;
  width:min(980px,100%)!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}
body.a3-gw90 .gw90-feature-grid button{
  min-height:114px!important;
  padding:16px 14px!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.92)!important;
  border:1px solid var(--a3p97-line)!important;
  box-shadow:var(--a3p97-soft-shadow)!important;
}
body.a3-gw90 .gw90-feature-grid button i{font-size:25px!important;margin-bottom:4px!important}
body.a3-gw90 .gw90-feature-grid button b{font-size:16px!important;color:var(--a3p97-navy)!important}
body.a3-gw90 .gw90-feature-grid button span{font-size:12px!important;color:var(--a3p97-muted)!important;line-height:1.65!important}
body.a3-gw90 .gw92-overview{display:none!important}

/* Better searchable country dropdown */
.a3p96-combo{z-index:214748200!important}
.a3p96-combo-panel{
  width:min(430px,calc(100vw - 32px))!important;
  border-radius:24px!important;
  border:1px solid var(--a3p97-line)!important;
  box-shadow:0 28px 80px rgba(8,42,99,.22)!important;
  padding:12px!important;
  z-index:214748300!important;
}
.a3p96-combo-search{
  height:48px!important;
  border-radius:17px!important;
  background:#f5f9ff!important;
  border:1px solid var(--a3p97-line)!important;
  margin-bottom:10px!important;
}
.a3p96-combo-option{
  min-height:42px!important;
  border-radius:15px!important;
  padding:10px 13px!important;
  border:1px solid transparent!important;
}
.a3p96-combo-option:hover,.a3p96-combo-option.is-selected{background:#eef6ff!important;border-color:#d2e2ff!important;color:var(--a3p97-blue)!important}

/* ===== Country page: keep first hero strong, but make business hero light ===== */
.a3h89-country-home .a3h89-builder,
.a3h89-country-home .a3h92-builder{
  background:linear-gradient(180deg,#ffffff 0%,#f5f9ff 100%)!important;
  color:var(--a3p97-text)!important;
  border:1px solid var(--a3p97-line)!important;
  box-shadow:var(--a3p97-shadow)!important;
  border-radius:30px!important;
}
.a3h89-country-home .a3h89-builder:before{display:none!important}
.a3h89-country-home .a3h89-builder span{
  background:#eaf3ff!important;
  color:var(--a3p97-blue)!important;
  border:1px solid #d7e7ff!important;
}
.a3h89-country-home .a3h89-builder h2{color:var(--a3p97-navy)!important;text-shadow:none!important}
.a3h89-country-home .a3h89-builder p{color:var(--a3p97-muted)!important}
.a3h89-country-home .a3h89-builder-actions a{
  background:#fff!important;
  color:var(--a3p97-navy)!important;
  border:1px solid var(--a3p97-line)!important;
  box-shadow:0 8px 22px rgba(8,42,99,.07)!important;
}
.a3h89-country-home .a3h89-builder-actions a:last-child{
  background:linear-gradient(135deg,var(--a3p97-blue),var(--a3p97-navy2))!important;
  color:#fff!important;
}

/* Account dropdown above hero and modern */
.dropdown-menu,.qm-user-dropdown,.country-menu{
  z-index:214748350!important;
  border-radius:22px!important;
  border:1px solid var(--a3p97-line)!important;
  box-shadow:0 28px 80px rgba(8,42,99,.18)!important;
}
.qm-user-dropdown{padding:10px!important;overflow:hidden!important}
.qm-user-dropdown .dropdown-item{
  border-radius:14px!important;
  padding:10px 12px!important;
  font-weight:850!important;
  color:var(--a3p97-text)!important;
}
.qm-user-dropdown .dropdown-item:hover{background:#eef6ff!important;color:var(--a3p97-blue)!important}
.qm-user-dropdown .dropdown-divider{margin:8px 0!important;border-color:#e8f0ff!important}
.main-header,.topbar,.a3-app-header{position:relative!important;z-index:214748100!important;overflow:visible!important}
.main-header .container,.main-header-inner,.a3-auth-area{overflow:visible!important}

/* Floating add/chat dock: horizontal and higher */
.a3-action-dock{
  right:24px!important;
  bottom:92px!important;
  z-index:214748250!important;
}
.a3-dock-buttons{display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important}
.a3-dock-add{width:62px!important;height:62px!important;font-size:30px!important}
.a3-dock-chat{width:54px!important;height:54px!important;font-size:22px!important}
.a3-dock-add span{right:74px!important;bottom:12px!important;font-size:13px!important;padding:8px 12px!important}
.a3-dock-panel{bottom:74px!important}
.a3-chat-panel{right:68px!important;bottom:68px!important}

/* Footer blue with light text */
.site-footer-new{
  background:linear-gradient(135deg,var(--a3p97-navy) 0%,#0e3b82 100%)!important;
  color:#eef6ff!important;
  border-top:0!important;
  box-shadow:0 -20px 50px rgba(8,42,99,.12)!important;
}
.site-footer-new h5,.site-footer-new h6{color:#fff!important;font-weight:950!important}
.site-footer-new p,.site-footer-new small{color:#cfe0ff!important}
.site-footer-new .footer-link{color:#eaf3ff!important;text-decoration:none!important;display:inline-flex!important;padding:5px 0!important}
.site-footer-new .footer-link:hover{color:#fff!important;text-decoration:underline!important}
.site-footer-new .footer-social{
  background:rgba(255,255,255,.10)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.14)!important;
}
.site-footer-new .footer-hr{border-color:rgba(255,255,255,.16)!important}
.site-footer-new .text-primary{color:#a9cdfd!important}

/* Directory cards on country home same visual scale as product/article cards */
.dir-home-strip .row{align-items:stretch!important}
.dir-home-strip .row>div{display:flex!important}
.dir-home-strip .dir-card,.dir-home-strip .dir-card-v46{
  width:100%!important;
  min-height:0!important;
  max-height:none!important;
  border-radius:22px!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  box-shadow:0 12px 30px rgba(8,42,99,.06)!important;
}
.dir-home-strip .dir-cover,
.dir-home-strip .dir-card-cover,
.dir-home-strip .dir-card-v46>img,
.dir-home-strip .dir-card img:first-child{
  height:145px!important;
  max-height:145px!important;
  width:100%!important;
  object-fit:cover!important;
}
.dir-home-strip .dir-logo,
.dir-home-strip .dir-card-logo{
  width:58px!important;
  height:58px!important;
  border-radius:18px!important;
}
.dir-home-strip .dir-card-body{padding:12px 13px 14px!important;flex:1!important}
.dir-home-strip .dir-card h3,.dir-home-strip .dir-card-v46 h3{
  font-size:16px!important;
  line-height:1.45!important;
  margin:0 0 7px!important;
}
.dir-home-strip .dir-card p,.dir-home-strip .dir-excerpt{
  font-size:13px!important;
  line-height:1.65!important;
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

@media(max-width:991px){
  body.a3-gw90 .gw90-wrap{width:min(100% - 24px,1120px)!important;padding-top:16px!important}
  body.a3-gw90 .gw91-market,body.a3-gw90 .gw91-search-only{grid-template-columns:1fr!important;border-radius:24px!important}
  body.a3-gw90 .gw90-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin-top:26px!important}
  .a3-action-dock{right:14px!important;bottom:86px!important}
}
@media(max-width:575px){
  body.a3-gw90 .gw90-logo img{width:165px!important;max-width:165px!important}
  body.a3-gw90 .gw90-hero h1{font-size:31px!important;line-height:1.22!important}
  body.a3-gw90 .gw90-hero p{font-size:14px!important;margin-bottom:14px!important}
  body.a3-gw90 .gw90-feature-grid{grid-template-columns:1fr!important}
  .a3-dock-add{width:56px!important;height:56px!important}.a3-dock-chat{width:50px!important;height:50px!important}.a3-dock-add span{display:none!important}
}
