/* WEBBE.vn V7 | Shared UI polish, scoped and loaded AFTER V6.
   Uses the existing data-webbe-theme tokens. No behavior is added to search/consult forms. */
:root{--wb-v7-ease:cubic-bezier(.22,1,.36,1)}
/* The two header calls to action use matching sheen, lift, focus and easing. */
body.wb-unified .header-actions :is(.wb-nav-consult,.wb-nav-estimate){
  position:relative;isolation:isolate;overflow:hidden;min-height:42px;
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  color:#fff!important;background:linear-gradient(115deg,var(--wb-theme-primary),var(--wb-theme-deep))!important;
  border:1px solid color-mix(in srgb,var(--wb-theme-primary) 62%,#fff)!important;
  border-radius:999px!important;text-decoration:none!important;
  box-shadow:0 9px 22px color-mix(in srgb,var(--wb-theme-primary) 22%,transparent)!important;
  transform:translateY(0);transition:transform .23s var(--wb-v7-ease),box-shadow .23s,filter .23s,border-color .23s!important;
}
body.wb-unified .header-actions :is(.wb-nav-consult,.wb-nav-estimate)::before{
  content:"";position:absolute;top:-80%;bottom:-80%;left:-75%;width:48%;z-index:-1;
  background:linear-gradient(98deg,transparent,rgba(255,255,255,.30),transparent);
  transform:skewX(-22deg);transition:left .55s var(--wb-v7-ease);pointer-events:none;
}
body.wb-unified .header-actions :is(.wb-nav-consult,.wb-nav-estimate):is(:hover,:focus-visible){
  transform:translateY(-2px);box-shadow:0 13px 29px color-mix(in srgb,var(--wb-theme-primary) 32%,transparent)!important;
  filter:brightness(1.08);text-decoration:none!important;
}
body.wb-unified .header-actions :is(.wb-nav-consult,.wb-nav-estimate):is(:hover,:focus-visible)::before{left:138%}
body.wb-unified .header-actions .wb-nav-estimate[aria-current="page"]{box-shadow:0 0 0 2px var(--wb-theme-surface),0 9px 20px color-mix(in srgb,var(--wb-theme-primary) 24%,transparent)!important}
body.wb-unified #nav .wb-nav-estimate-mobile{transition:background-color .22s,color .22s,transform .22s var(--wb-v7-ease),box-shadow .22s!important}
body.wb-unified #nav .wb-nav-estimate-mobile:hover{background:var(--wb-theme-primary)!important;color:#fff!important;transform:translateY(-1px);box-shadow:0 8px 18px color-mix(in srgb,var(--wb-theme-primary) 22%,transparent)}
/* Search control inherits the industry's palette, with a readable hover and active state. */
body.wb-unified .header .search-toggle{
  color:var(--wb-theme-primary)!important;
  background:color-mix(in srgb,var(--wb-theme-primary) 9%,#fff)!important;
  border:1px solid color-mix(in srgb,var(--wb-theme-primary) 26%,#fff)!important;
  border-radius:50%!important;width:40px;min-width:40px;height:40px;min-height:40px;
  display:inline-grid!important;place-items:center!important;padding:9px!important;
  box-shadow:0 5px 14px color-mix(in srgb,var(--wb-theme-primary) 11%,transparent);
  transition:background .22s,color .22s,transform .22s,box-shadow .22s!important;
}
body.wb-unified .header .search-toggle svg{height:19px;width:19px;stroke:currentColor;fill:none}
body.wb-unified .header .search-toggle:is(:hover,:focus-visible,[aria-expanded="true"]){
  color:#fff!important;background:var(--wb-theme-primary)!important;
  border-color:var(--wb-theme-primary)!important;transform:translateY(-1px);
  box-shadow:0 8px 22px color-mix(in srgb,var(--wb-theme-primary) 28%,transparent);
}
/* Home-consistent WHY section: split intro + a four-card benefit grid. */
body.wb-unified .wb-v7-reasons{padding:clamp(58px,6.4vw,98px) 18px!important;position:relative;isolation:isolate;
  background:radial-gradient(ellipse at 8% 4%,color-mix(in srgb,var(--wb-theme-bright) 32%,transparent),transparent 45%),
  linear-gradient(152deg,#fff,var(--wb-theme-surface) 100%)!important;color:var(--wb-theme-ink);}
body.wb-unified .wb-v7-container{max-width:1210px;width:min(1210px,100%);margin-inline:auto}
body.wb-unified .wb-v7-reasons .wb-v7-split{display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(0,.87fr);gap:16px 52px;align-items:center;margin-bottom:34px}
body.wb-unified .wb-v7-reasons .wb-v7-split>div{min-width:0}
body.wb-unified .wb-v7-reasons .eyebrow{display:inline-block;letter-spacing:.13em;color:var(--wb-theme-primary)!important;
  font:800 11px/1.5 var(--wb-font-body);margin-bottom:13px}
body.wb-unified .wb-v7-reasons h2{font-family:var(--wb-font-head);font-size:clamp(25px,2.7vw,39px)!important;line-height:1.26;color:var(--wb-theme-deep)!important;margin:0;letter-spacing:-.03em}
body.wb-unified .wb-v7-reasons .wb-v7-split>p{color:#51667d!important;margin:0;font-size:clamp(13px,1.05vw,16px);line-height:1.8}
body.wb-unified .wb-v7-reasons .text-link{color:var(--wb-theme-primary)!important;font-weight:800;text-decoration:none;justify-self:start}
body.wb-unified .wb-v7-benefits{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.55vw,19px);width:100%;}
body.wb-unified .wb-v7-benefit{display:flex;flex-direction:column;min-width:0;min-height:202px;padding:clamp(19px,2vw,27px)!important;border-radius:20px;
  border:1px solid color-mix(in srgb,var(--wb-theme-primary) 17%,#e1eaf3)!important;background:rgba(255,255,255,.96)!important;
  box-shadow:0 12px 27px rgba(13,41,74,.065)!important;transition:transform .22s var(--wb-v7-ease),box-shadow .22s,border-color .22s}
body.wb-unified .wb-v7-benefit:hover{transform:translateY(-5px);box-shadow:0 19px 39px color-mix(in srgb,var(--wb-theme-primary) 12%,transparent)!important;border-color:var(--wb-theme-primary)!important}
body.wb-unified .wb-v7-benefit-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:15px;
  background:var(--wb-theme-surface);color:var(--wb-theme-primary);border:1px solid color-mix(in srgb,var(--wb-theme-primary) 18%,#fff);margin-bottom:18px}
body.wb-unified .wb-v7-benefit-icon svg{width:24px;height:24px}
body.wb-unified .wb-v7-benefit h3{margin:0 0 9px;color:var(--wb-theme-deep)!important;font-size:clamp(15px,1.13vw,18px)!important;line-height:1.5;font-weight:800;letter-spacing:-.015em}
body.wb-unified .wb-v7-benefit p{margin:0;color:#52667b!important;font-size:12px!important;line-height:1.7}
/* Homepage still populates its own four benefit cards with JS; preserve that behavior. */
body.wb-unified .wb-v7-home-reasons .benefits:not(.wb-v7-benefits){max-width:100%;}
/* Home-consistent IMPACT section, retaining the impact-* template vocabulary. */
body.wb-unified .wb-v7-impact,body.wb-unified #numbers.wb-v7-impact{position:relative;isolation:isolate;overflow:hidden;
  background:radial-gradient(ellipse at 88% 0%,color-mix(in srgb,var(--wb-theme-bright) 17%,transparent),transparent 45%),
  linear-gradient(120deg,var(--wb-theme-dark,#082c51),var(--wb-theme-primary))!important;
  padding:clamp(54px,6vw,86px) 18px!important;color:#fff!important;}
body.wb-unified .wb-v7-impact :is(.impact-aura){position:absolute;pointer-events:none;inset:auto auto -145px -180px;width:390px;height:390px;border-radius:50%;background:var(--wb-theme-bright);opacity:.09;filter:blur(75px)}
body.wb-unified .wb-v7-impact .impact-aura-two{inset:-145px -175px auto auto}
body.wb-unified .wb-v7-impact :is(.impact-shell,.impact-intro,.impact-grid,.impact-bottom){position:relative;z-index:1}
body.wb-unified .wb-v7-impact .impact-intro{display:grid!important;grid-template-columns:1.15fr 1fr;gap:25px 50px;align-items:end;margin:0 0 34px;padding:0}
body.wb-unified .wb-v7-impact .impact-kicker{display:flex;align-items:center;gap:8px;color:var(--wb-theme-bright)!important;font:800 11px/1.6 var(--wb-font-body);letter-spacing:.12em}
body.wb-unified .wb-v7-impact .impact-kicker-dot,body.wb-unified .wb-v7-impact .impact-bottom-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--wb-theme-bright)}
body.wb-unified .wb-v7-impact h2{font:800 clamp(26px,2.75vw,43px)/1.24 var(--wb-font-head)!important;letter-spacing:-.025em!important;color:#fff!important;margin:13px 0 0!important}
body.wb-unified .wb-v7-impact h2 span{color:var(--wb-theme-bright)!important;-webkit-text-fill-color:var(--wb-theme-bright)!important}
body.wb-unified .wb-v7-impact .impact-lead{display:flex;gap:14px;align-items:flex-start}
body.wb-unified .wb-v7-impact .impact-lead-line{flex:0 0 3px;width:3px;height:45px;background:var(--wb-theme-bright);border-radius:3px}
body.wb-unified .wb-v7-impact .impact-lead p{color:rgba(255,255,255,.84)!important;margin:0;font-size:clamp(12px,1.05vw,15px);line-height:1.76}
body.wb-unified .wb-v7-impact .impact-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.45vw,20px)!important;margin:0}
body.wb-unified .wb-v7-impact .impact-card{position:relative;min-width:0;min-height:245px;display:flex;flex-direction:column;
  background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.22)!important;
  border-radius:19px!important;padding:23px!important;box-shadow:0 10px 30px rgba(0,0,0,.06)!important;
  color:#fff!important;transition:transform .24s var(--wb-v7-ease),background .24s,box-shadow .24s}
body.wb-unified .wb-v7-impact .impact-card:hover{transform:translateY(-4px);background:rgba(255,255,255,.16)!important;box-shadow:0 16px 35px rgba(0,0,0,.12)!important}
body.wb-unified .wb-v7-impact .impact-card-head{display:flex;margin:0 0 16px;min-height:36px}
body.wb-unified .wb-v7-impact .impact-icon{display:grid;place-items:center;color:var(--wb-theme-bright)!important;width:40px;height:40px;background:rgba(255,255,255,.10);border-radius:12px}
body.wb-unified .wb-v7-impact .impact-icon svg{width:26px;height:26px}
body.wb-unified .wb-v7-impact .impact-value{display:flex;align-items:baseline;gap:2px;font-family:var(--wb-font-head);line-height:1;margin:0 0 14px!important}
body.wb-unified .wb-v7-impact .impact-number{font-size:clamp(37px,4vw,58px)!important;line-height:1!important;font-weight:900!important;color:#fff!important;letter-spacing:-.035em}
body.wb-unified .wb-v7-impact .impact-card h3{font:800 clamp(14px,1.14vw,17px)/1.4 var(--wb-font-head)!important;color:#fff!important;margin:0 0 9px!important}
body.wb-unified .wb-v7-impact .impact-card p{color:rgba(255,255,255,.8)!important;font-size:12px!important;line-height:1.72;margin:0 0 16px!important}
body.wb-unified .wb-v7-impact .impact-card-rule{height:3px;position:absolute;bottom:0;left:20px;right:20px;background:linear-gradient(90deg,var(--wb-theme-bright),transparent);border-radius:4px}
body.wb-unified .wb-v7-impact .impact-bottom{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px;margin-top:25px!important;color:rgba(255,255,255,.8);font-size:12px}
body.wb-unified .wb-v7-impact .impact-bottom>span{display:flex;gap:9px;align-items:center}
body.wb-unified .wb-v7-impact .impact-bottom a{color:var(--wb-theme-bright)!important;font-weight:800;text-decoration:none}
/* CTA is already data-cta-theme powered; refine contrast after moving it up the page. */
body.wb-unified #site-cta[data-cta-theme]{--wb-v7-cta-edge:color-mix(in srgb,var(--wb-cta-accent) 34%,transparent);background:linear-gradient(180deg,var(--wb-cta-surround),#fff)!important;}
body.wb-unified #site-cta[data-cta-theme] .cta.cta-pro{border-color:var(--wb-v7-cta-edge)!important;
  background:radial-gradient(ellipse at 88% 5%,color-mix(in srgb,var(--wb-cta-accent) 22%,transparent),transparent 48%),linear-gradient(120deg,var(--wb-cta-bg1),var(--wb-cta-bg2))!important;}
body.wb-unified #site-cta[data-cta-theme] .cta-primary{background:var(--wb-cta-accent)!important;color:var(--wb-cta-bg1)!important}
body.wb-unified #site-cta[data-cta-theme] .cta-secondary{border-color:color-mix(in srgb,var(--wb-cta-accent) 55%,transparent)!important}
body.wb-unified #site-cta[data-wb-cta-position="after-industry-applications"]{margin:0;padding:clamp(36px,4vw,62px) 16px!important}
@media(max-width:1090px){
 body.wb-unified .wb-v7-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.wb-unified .wb-v7-impact .impact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.wb-unified .wb-v7-impact .impact-card{min-height:220px}
}
@media(max-width:760px){
 body.wb-unified .wb-v7-reasons .wb-v7-split{grid-template-columns:1fr;gap:13px;margin-bottom:25px}
 body.wb-unified .wb-v7-impact .impact-intro{grid-template-columns:1fr;gap:13px}
}
@media(max-width:560px){
 body.wb-unified .wb-v7-reasons{padding:44px 15px!important}
 body.wb-unified .wb-v7-benefits{grid-template-columns:1fr;gap:12px}
 body.wb-unified .wb-v7-benefit{min-height:0;padding:19px!important}
 body.wb-unified .wb-v7-benefit-icon{width:43px;height:43px;margin-bottom:12px}
 body.wb-unified .wb-v7-impact{padding:47px 15px!important}
 body.wb-unified .wb-v7-impact .impact-grid{gap:10px!important}
 body.wb-unified .wb-v7-impact .impact-card{min-height:213px;padding:16px!important}
 body.wb-unified .wb-v7-impact .impact-card h3{font-size:13px!important}
 body.wb-unified .wb-v7-impact .impact-card p{font-size:11px!important}
 body.wb-unified .wb-v7-impact .impact-number{font-size:36px!important}
 body.wb-unified .header .search-toggle{width:36px;min-width:36px;height:36px;min-height:36px;padding:8px!important}
}
@media(max-width:360px){body.wb-unified .wb-v7-impact .impact-grid{grid-template-columns:1fr!important}body.wb-unified .wb-v7-impact .impact-card{min-height:0}}
@media(prefers-reduced-motion:reduce){
 body.wb-unified .header-actions :is(.wb-nav-consult,.wb-nav-estimate),body.wb-unified .header-actions :is(.wb-nav-consult,.wb-nav-estimate)::before,
 body.wb-unified .header .search-toggle,body.wb-unified .wb-v7-benefit,body.wb-unified .wb-v7-impact .impact-card{transition:none!important;transform:none!important}
}
